mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
fix(DatetimePicker): vant3 fixed incorrect value when dynamic set min/max (#8658)
This commit is contained in:
@@ -299,7 +299,14 @@ export default defineComponent({
|
||||
emit('update:modelValue', oldValue ? value : null)
|
||||
);
|
||||
|
||||
watch(() => [props.filter, props.minDate, props.maxDate], updateInnerValue);
|
||||
watch(() => [props.filter, props.maxDate], updateInnerValue);
|
||||
|
||||
watch(
|
||||
() => props.minDate,
|
||||
() => {
|
||||
nextTick(updateInnerValue);
|
||||
}
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
|
Reference in New Issue
Block a user