diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index fcd478f1bb..5be0e675a2 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -3200,7 +3200,7 @@ export const Calendar = React.memo(
{yearPickerValues().map((y, i) => { return ( - onYearSelect(event, y)} key={`year${i + 1}`} className={classNames('p-yearpicker-year', { 'p-highlight': isYearSelected(y) })}> + onYearSelect(event, y)} key={`year${i + 1}`} className={classNames('p-yearpicker-year', { 'p-highlight': isYearSelected(y), 'p-disabled': !isSelectable(0, 0, y) })}> {y} );