Skip to content

Commit

Permalink
Fix #4803: Calendar disabledDays only in date display
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Aug 21, 2023
1 parent 48723c1 commit dce7890
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 @@ -1836,7 +1836,7 @@ export const Calendar = React.memo(
validDate = !isDateDisabled(day, month, year);
}

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

Expand Down

0 comments on commit dce7890

Please sign in to comment.