mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 02:39:56 +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() {
|
||||
this.filterChanged = _.debounce(this.filterChanged, 500);
|
||||
this.filterTelemetry = _.debounce(this.filterTelemetry, 500);
|
||||
},
|
||||
mounted() {
|
||||
this.csvExporter = new CSVExporter();
|
||||
@ -667,8 +667,7 @@ export default {
|
||||
this.headersHolderEl.scrollLeft = this.scrollable.scrollLeft;
|
||||
}
|
||||
},
|
||||
filterChanged(columnKey, newFilterValue) {
|
||||
this.filters[columnKey] = newFilterValue;
|
||||
filterTelemetry(columnKey) {
|
||||
if (this.enableRegexSearch[columnKey]) {
|
||||
if (this.isCompleteRegex(this.filters[columnKey])) {
|
||||
this.table.tableRows.setColumnRegexFilter(
|
||||
@ -684,6 +683,10 @@ export default {
|
||||
|
||||
this.setHeight();
|
||||
},
|
||||
filterChanged(columnKey, newFilterValue) {
|
||||
this.filters[columnKey] = newFilterValue;
|
||||
this.filterTelemetry(columnKey);
|
||||
},
|
||||
clearFilter(columnKey) {
|
||||
this.filters[columnKey] = '';
|
||||
this.table.tableRows.setColumnFilter(columnKey, '');
|
||||
|
Loading…
Reference in New Issue
Block a user