fix(DatePicker): failed to update model value (#10984)

This commit is contained in:
neverland
2022-08-28 16:59:41 +08:00
committed by GitHub
parent 21c57caa9b
commit 05544c109f

View File

@@ -130,7 +130,7 @@ export default defineComponent({
);
watch(currentValues, (newValues) => {
if (isSameValue(newValues, props.modelValue)) {
if (!isSameValue(newValues, props.modelValue)) {
emit('update:modelValue', newValues);
}
});