Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed May 12, 2023
2 parents 8042623 + 9e3a4d1 commit c8b1660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,7 @@ export const Calendar = React.memo(
validDate = !isDateDisabled(day, month, year);
}

if (props.disabledDays) {
if (props.disabledDays && currentView !== 'month') {
validDay = !isDayDisabled(day, month, year);
}

Expand Down

0 comments on commit c8b1660

Please sign in to comment.