Skip to content

Commit

Permalink
Fix #5574: Calendar Tailwind context.selected val (#5583)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 12, 2023
1 parent e0e09ae commit c4231ae
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 @@ -3659,14 +3659,14 @@ export const Calendar = React.memo(
className: cx('month', { isMonthSelected, isSelectable, i, currentYear }),
onClick: (event) => onMonthSelect(event, i),
onKeyDown: (event) => onMonthCellKeydown(event, i),
'data-p-disabled': !m.selectable,
'data-p-disabled': !isSelectable(0, i, currentYear),
'data-p-highlight': isMonthSelected(i)
},
ptm('month', {
context: {
month: m,
monthIndex: i,
disabled: !m.selectable,
disabled: !isSelectable(0, i, currentYear),
selected: isMonthSelected(i)
}
})
Expand Down

0 comments on commit c4231ae

Please sign in to comment.