fix(components): [select] skip process keydown.enter in composing (#22861)

fix(components): [select] skip process keydown.enter event in composing state

Co-authored-by: reexliu <reexliu@tencent.com>
This commit is contained in:
reex
2025-11-24 17:42:58 +08:00
committed by GitHub
parent e8599c6461
commit 8ca2ad7ecb

View File

@@ -822,7 +822,9 @@ export const useSelect = (props: SelectProps, emit: SelectEmits) => {
break
case EVENT_CODE.enter:
case EVENT_CODE.numpadEnter:
selectOption()
if (!isComposing.value) {
selectOption()
}
break
case EVENT_CODE.esc:
handleEsc()