We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5347b8 commit 7f2510fCopy full SHA for 7f2510f
packages/select/src/select.vue
@@ -62,8 +62,7 @@
62
@compositionupdate="handleComposition"
63
@compositionend="handleComposition"
64
v-model="query"
65
- @input="e => handleQueryChange(e.target.value)"
66
- :debounce="remote ? 300 : 0"
+ @input="debouncedQueryChange"
67
v-if="filterable"
68
:style="{ width: inputLength + 'px', 'max-width': inputWidth - 42 + 'px' }"
69
ref="input">
@@ -849,6 +848,10 @@
849
848
this.onInputChange();
850
});
851
+ this.debouncedQueryChange = debounce(this.debounce, (e) => {
852
+ this.handleQueryChange(e.target.value);
853
+ });
854
+
855
this.$on('handleOptionClick', this.handleOptionSelect);
856
this.$on('setSelected', this.setSelected);
857
},
0 commit comments