fix[Selector]: fix component controlled display

pull/7822/head
carl-chen 2024-09-04 12:54:40 -03:00
parent 2666cb79ab
commit bbab81ab8c
1 changed files with 5 additions and 1 deletions

View File

@ -209,10 +209,14 @@ const SelectSelector = defineComponent<SelectorProps>({
const handleInput = (e: Event) => {
const composing = (e.target as any).composing;
targetValue.value = (e.target as any).value;
if (!composing) {
props.onInputChange(e);
}
// if inputValue is not change
targetValue.value = inputValue.value;
(e.target as any).value = inputValue.value;
};
return () => {