Skip to content

A platform for community discussion. Free, open, simple.

FIX: prevents loading to show during debouncing (#9060)

Joffrey JAFFEUX501936f0da94
diff --git a/app/assets/javascripts/select-kit/components/select-kit.js.es6 b/app/assets/javascripts/select-kit/components/select-kit.js.es6
index 3159d596a94..ed78c9ed78d 100644
--- a/app/assets/javascripts/select-kit/components/select-kit.js.es6
+++ b/app/assets/javascripts/select-kit/components/select-kit.js.es6
@@ -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);
},