fix: month selection highlighting problem in range mode

pull/6121/head
He Xinpeng 2024-07-26 15:57:15 +08:00
parent d78678ce4d
commit 59a2662dd2
1 changed files with 1 additions and 1 deletions

View File

@ -418,7 +418,7 @@ const classes = {
let selectedDayClass = '';
if (instance.isRangeSelection() && instance.isSelected(date) && date.selectable) {
selectedDayClass = date.day === props.modelValue[0].getDate() || date.day === props.modelValue[1].getDate() ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range';
selectedDayClass = instance.isDateEquals(props.modelValue[0], date) || instance.isDateEquals(props.modelValue[1], date) ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range';
}
return [