feat(Select): avoid IME input issue when typing in filter

pull/6280/head
Charlie 2024-08-23 17:02:01 +08:00
parent 839a980b1b
commit a409d43579
1 changed files with 6 additions and 0 deletions

View File

@ -495,6 +495,12 @@ export default {
!this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
},
onFilterKeyDown(event) {
const isComposing = event.isComposing;
// Avoid IME input issue in Chinese, Japanese and Korean languages
// If they are still typing, do not trigger onFilterKeyDown
if (isComposing) return;
switch (event.code) {
case 'ArrowDown':
this.onArrowDownKey(event);