From 91a8286b67d481fa2ab2a2e5d84a395b068bff4a Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 21 Aug 2023 12:29:34 -0400 Subject: [PATCH] Fix #4803: Calendar disabledDays only in date display (#4804) --- components/lib/calendar/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index 4a4afe639e..8f38037eaf 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -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); }