mirror of
https://github.com/discourse/discourse.git
synced 2024-12-14 18:04:17 +08:00
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
751708ba0c
commit
2cc533e26e
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user