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:
Joffrey JAFFEUX 2020-02-27 15:20:04 +01:00 committed by GitHub
parent 4673f31c75
commit 501936f0da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -382,13 +382,12 @@ export default Component.extend(
);
if (input) {
this.selectKit.set("isLoading", true);
debounce(this, this._debouncedInput, event.target.value, 200);
}
},
_debouncedInput(filter) {
this.selectKit.set("filter", filter);
this.selectKit.setProperties({ filter, isLoading: true });
this._searchPromise = this._searchWrapper(filter);
},