Skip to content

Commit

Permalink
Fix #5574: Calendar Tailwind context.selected val
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Dec 12, 2023
1 parent 94c1670 commit 2882e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
Expand Down

0 comments on commit 2882e3c

Please sign in to comment.