From 07637d59597a7d1477bcffccaf380d0a8f836fa4 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 12 Dec 2023 07:58:44 -0500 Subject: [PATCH] Fix #5574: Calendar Tailwind context.selected val --- components/lib/calendar/Calendar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index d62958ab8f..8d3a243d12 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -3666,8 +3666,8 @@ export const Calendar = React.memo( context: { month: m, monthIndex: i, - selected: isMonthSelected(i), - disabled: !m.selectable + disabled: !m.selectable, + selected: isMonthSelected(i) } }) ); @@ -3709,7 +3709,7 @@ export const Calendar = React.memo( year: y, yearIndex: i, selected: isYearSelected(y), - disabled: !y.selectable + disabled: !isSelectable(0, -1, y) } }) );