fix(select): mergedValue shouldn't modified by outValue (#4670)

2.x
叡山电车 3 years ago committed by GitHub
parent 2e5e146f0c
commit 2e22b221c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -629,7 +629,10 @@ export default function generateSelector<
props.onChange(outValue, isMultiple.value ? outOptions : outOptions[0]);
}
mergedValue.value = outValue;
if (props.value === undefined) {
mergedValue.value = outValue;
}
};
const onInternalSelect = (

Loading…
Cancel
Save