From 2882e3c2ed8549a7bddc0e06b4f805e57b87ed19 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index d62958ab8f..7de905c425 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -3660,13 +3660,13 @@ export const Calendar = React.memo( onClick: (event) => onMonthSelect(event, i), onKeyDown: (event) => onMonthCellKeydown(event, i), 'data-p-disabled': !m.selectable, - 'data-p-highlight': isMonthSelected(i) + 'data-p-highlight': isMonthSelected(m) }, ptm('month', { context: { month: m, monthIndex: i, - selected: isMonthSelected(i), + selected: isMonthSelected(m), disabled: !m.selectable } })