From 501936f0da943d0d0d2fb24cdd634d64fbd459ba Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 27 Feb 2020 15:20:04 +0100 Subject: [PATCH] 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 --- app/assets/javascripts/select-kit/components/select-kit.js.es6 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); },