mirror of
https://github.com/nasa/openmct.git
synced 2025-01-29 15:43:52 +00:00
Prevent rubber-banding in Telemetry Table filter input (#7248)
* should debounce the filtering of the telemetry, not the setting of the input * add some laggy typing to check for debouncing issues * revert test
This commit is contained in:
parent
28bfc90036
commit
415b65237b
@ -477,7 +477,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.filterChanged = _.debounce(this.filterChanged, 500);
|
this.filterTelemetry = _.debounce(this.filterTelemetry, 500);
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.csvExporter = new CSVExporter();
|
this.csvExporter = new CSVExporter();
|
||||||
@ -667,8 +667,7 @@ export default {
|
|||||||
this.headersHolderEl.scrollLeft = this.scrollable.scrollLeft;
|
this.headersHolderEl.scrollLeft = this.scrollable.scrollLeft;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filterChanged(columnKey, newFilterValue) {
|
filterTelemetry(columnKey) {
|
||||||
this.filters[columnKey] = newFilterValue;
|
|
||||||
if (this.enableRegexSearch[columnKey]) {
|
if (this.enableRegexSearch[columnKey]) {
|
||||||
if (this.isCompleteRegex(this.filters[columnKey])) {
|
if (this.isCompleteRegex(this.filters[columnKey])) {
|
||||||
this.table.tableRows.setColumnRegexFilter(
|
this.table.tableRows.setColumnRegexFilter(
|
||||||
@ -684,6 +683,10 @@ export default {
|
|||||||
|
|
||||||
this.setHeight();
|
this.setHeight();
|
||||||
},
|
},
|
||||||
|
filterChanged(columnKey, newFilterValue) {
|
||||||
|
this.filters[columnKey] = newFilterValue;
|
||||||
|
this.filterTelemetry(columnKey);
|
||||||
|
},
|
||||||
clearFilter(columnKey) {
|
clearFilter(columnKey) {
|
||||||
this.filters[columnKey] = '';
|
this.filters[columnKey] = '';
|
||||||
this.table.tableRows.setColumnFilter(columnKey, '');
|
this.table.tableRows.setColumnFilter(columnKey, '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user