Explorar o código

Select: Fix default-first-option behavior when typing Chinese (#15431) (#15553)

* Select: Fix default-first-option behavior when typing Chinese (#15431)

* Select: Fix missing param transmit

* Select: callback style modify
VanMess %!s(int64=6) %!d(string=hai) anos
pai
achega
43a44adc76
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/select.vue

@@ -445,7 +445,7 @@
         const text = event.target.value;
         if (event.type === 'compositionend') {
           this.isOnComposition = false;
-          this.handleQueryChange(text);
+          this.$nextTick(_ => this.handleQueryChange(text));
         } else {
           const lastCharacter = text[text.length - 1] || '';
           this.isOnComposition = !isKorean(lastCharacter);