Skip to content

Commit

Permalink
Select: Fix default-first-option behavior when typing Chinese (ElemeF…
Browse files Browse the repository at this point in the history
…E#15431) (ElemeFE#15553)

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

* Select: Fix missing param transmit

* Select: callback style modify
  • Loading branch information
VanMess authored and lzq4047 committed May 22, 2020
1 parent 334c699 commit 57a4d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57a4d6a

Please sign in to comment.