From ab6bfd8d1d9f7c21862b2f1d42c3fa8a62078e62 Mon Sep 17 00:00:00 2001 From: betavs <34408516+betavs@users.noreply.github.com> Date: Sat, 7 Oct 2023 16:24:48 +0800 Subject: [PATCH] fix(date-picker): confirm event does not work (#2833) --- src/date-picker/DatePicker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/date-picker/DatePicker.tsx b/src/date-picker/DatePicker.tsx index e7fc42608..06a28dc84 100644 --- a/src/date-picker/DatePicker.tsx +++ b/src/date-picker/DatePicker.tsx @@ -175,6 +175,7 @@ export default defineComponent({ }); if (nextValue) { props?.onConfirm?.({ date: dayjs(nextValue as string).toDate(), e }); + emit('confirm', { date: dayjs(nextValue as string).toDate(), e }); onChange?.( formatDate(inputValue.value, { format: formatRef.value.format,