Fixed #4508 - Calendar | Disabled date is highlighted when it's in the range

pull/4556/head
Tuğçe Küçükoğlu 2023-09-26 15:37:30 +03:00
parent f2dc9a309d
commit eff9046090
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ const classes = {
weekNumber: 'p-datepicker-weeknumber',
weekLabelContainer: 'p-disabled',
day: ({ date }) => [{ 'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today }],
dayLabel: ({ instance, date }) => [{ 'p-highlight': instance.isSelected(date), 'p-disabled': !date.selectable }],
dayLabel: ({ instance, date }) => [{ 'p-highlight': instance.isSelected(date) && date.selectable, 'p-disabled': !date.selectable }],
monthPicker: 'p-monthpicker',
month: ({ instance, month, index }) => ['p-monthpicker-month', { 'p-highlight': instance.isMonthSelected(index), 'p-disabled': !month.selectable }],
yearPicker: 'p-yearpicker',