We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af86363 commit 08bbc84Copy full SHA for 08bbc84
packages/core/src/Calendar/index.tsx
@@ -79,8 +79,8 @@ const Calendar = (props: CalendarProps) => {
79
setLastData(toMonths[0]);
80
setDayData(toMonths[1]);
81
setNextData(toMonths[2]);
82
- const date = currentYear + '-' + (currentMonth + 1) + '-' + currentDays;
83
- onChange?.(date);
+ // const date = currentYear + '-' + (currentMonth + 1) + '-' + currentDays;
+ // onChange?.(date);
84
}, [currentYear, currentMonth, currentDays]);
85
86
/**
@@ -207,6 +207,7 @@ const Calendar = (props: CalendarProps) => {
207
setCurrentDays(day.monthDays);
208
getCurrentMonth('next');
209
}
210
+ onChange?.(day.date || '');
211
};
212
const getCurrentYear = (type: string) => {
213
if (type === 'last') {
0 commit comments