mirror of
https://github.com/youzan/vant.git
synced 2026-05-07 01:01:01 +08:00
fix(DatePicker): failed to update model value (#10984)
This commit is contained in:
@@ -130,7 +130,7 @@ export default defineComponent({
|
||||
);
|
||||
|
||||
watch(currentValues, (newValues) => {
|
||||
if (isSameValue(newValues, props.modelValue)) {
|
||||
if (!isSameValue(newValues, props.modelValue)) {
|
||||
emit('update:modelValue', newValues);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user