Skip to content

Commit

Permalink
fix(date-picker): confirm event does not work (#2833)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored and uyarn committed Oct 23, 2023
1 parent c0b183f commit ab6bfd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/date-picker/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ab6bfd8

Please sign in to comment.