From a409d43579a6b6dec14e3bf44bbc5de61c545c0d Mon Sep 17 00:00:00 2001 From: Charlie Date: Fri, 23 Aug 2024 17:02:01 +0800 Subject: [PATCH] feat(Select): avoid IME input issue when typing in filter --- packages/primevue/src/select/Select.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/primevue/src/select/Select.vue b/packages/primevue/src/select/Select.vue index 55251db8b..31e3f4753 100755 --- a/packages/primevue/src/select/Select.vue +++ b/packages/primevue/src/select/Select.vue @@ -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);