Merge pull request #6121 from LemonAppleMo/master
fix: month selection highlighting problem in range modepull/6161/head
commit
232fd1cb1f
|
@ -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 [
|
||||
|
|
Loading…
Reference in New Issue