fix(select): mergedValue shouldn't modified by outValue (#4670)
parent
2e5e146f0c
commit
2e22b221c9
|
@ -629,7 +629,10 @@ export default function generateSelector<
|
||||||
|
|
||||||
props.onChange(outValue, isMultiple.value ? outOptions : outOptions[0]);
|
props.onChange(outValue, isMultiple.value ? outOptions : outOptions[0]);
|
||||||
}
|
}
|
||||||
mergedValue.value = outValue;
|
|
||||||
|
if (props.value === undefined) {
|
||||||
|
mergedValue.value = outValue;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const onInternalSelect = (
|
const onInternalSelect = (
|
||||||
|
|
Loading…
Reference in New Issue