FIX: prevents loading to show during debouncing (#9060)
This will also fix a bug in IE11 where click event would not be triggered on row
This commit is contained in:
parent
4673f31c75
commit
501936f0da
|
@ -382,13 +382,12 @@ export default Component.extend(
|
||||||
);
|
);
|
||||||
|
|
||||||
if (input) {
|
if (input) {
|
||||||
this.selectKit.set("isLoading", true);
|
|
||||||
debounce(this, this._debouncedInput, event.target.value, 200);
|
debounce(this, this._debouncedInput, event.target.value, 200);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_debouncedInput(filter) {
|
_debouncedInput(filter) {
|
||||||
this.selectKit.set("filter", filter);
|
this.selectKit.setProperties({ filter, isLoading: true });
|
||||||
this._searchPromise = this._searchWrapper(filter);
|
this._searchPromise = this._searchWrapper(filter);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue