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
  • Loading branch information
范文杰 committed May 14, 2019
1 parent 16a6059 commit 46f101a
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);
} else {
const lastCharacter = text[text.length - 1] || '';
this.isOnComposition = !isKorean(lastCharacter);
Expand Down

0 comments on commit 46f101a

Please sign in to comment.