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 Neil Lalonde
parent 751708ba0c
commit 2cc533e26e
No known key found for this signature in database
GPG Key ID: FF871CA9037D0A91

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);
},