Fix calendar.

This commit is contained in:
Brian Cao committed 2023-01-20 12:33:21 -08:00
1 parent 5c683f9103
commit d9ba4097ee
1 file changed
+2 -1
+2 -1
View File
@@ -123,7 +123,8 @@ const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
}
const days = [];
for (let i = 0; i < 35; i++) {
const weekCount = addDays(startDay, 36).getMonth() === month ? 42 : 35;
for (let i = 0; i < weekCount; i++) {
days.push(addDays(startDay, i));
}