Merge pull request #6280 from charlie0228/master

feat(Select): avoid IME input issue when typing in filter
pull/6378/head
Tuğçe Küçükoğlu 2024-09-10 16:22:39 +03:00 committed by GitHub
commit 9948a50152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);