diff --git a/components/_util/use/useInput.ts b/components/_util/use/useInput.ts index 5365ebe0..5c9da04f 100644 --- a/components/_util/use/useInput.ts +++ b/components/_util/use/useInput.ts @@ -3,6 +3,9 @@ import { ref } from 'vue'; export function useInput(updateValue: (val: string) => void) { const isComposing = ref(false); const handleInput = (event: Event | string) => { + if (event instanceof InputEvent && !event.isComposing) { + isComposing.value = false; + } if (!isComposing.value) { if (event instanceof Event) { const { value } = event.target as HTMLInputElement; diff --git a/components/select-trigger/selectTrigger.vue b/components/select-trigger/selectTrigger.vue index f019fc65..a9c724d3 100644 --- a/components/select-trigger/selectTrigger.vue +++ b/components/select-trigger/selectTrigger.vue @@ -386,6 +386,9 @@ export default defineComponent({ }; const handleInput = (e: Event) => { + if (e instanceof InputEvent && !e.isComposing) { + isComposingRef.value = false; + } if (props.disabled || isComposingRef.value) { return; }