From 25be56aa3eae872f2304bb989ff8d25246c6601d Mon Sep 17 00:00:00 2001 From: Alan Wang Date: Tue, 29 Mar 2022 22:01:17 -0400 Subject: [PATCH] fix(datetime-picker): modeValue is inconsistent with the selected data. (#10448) --- packages/vant/src/datetime-picker/DatePicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vant/src/datetime-picker/DatePicker.tsx b/packages/vant/src/datetime-picker/DatePicker.tsx index 79dacd7c3..563168e73 100644 --- a/packages/vant/src/datetime-picker/DatePicker.tsx +++ b/packages/vant/src/datetime-picker/DatePicker.tsx @@ -281,6 +281,7 @@ export default defineComponent({ const onChange = () => { updateInnerValue(); nextTick(() => { + updateInnerValue(); nextTick(() => emit('change', currentDate.value)); }); };