Skip to content

Commit

Permalink
fix: Wrong css on highlighted days when using week picker (fixes #637)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Nov 6, 2023
1 parent 963d1ce commit 5292daf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/VueDatePicker/composables/calendar-class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ export const useCalendarClass = (modelValue: WritableComputedRef<InternalModuleV
!disableHighlight(day) &&
(highlighted(day) || highlightedWeekDay(day)) &&
!isActive(day) &&
!isRangeStartEnd,
!isRangeStartEnd &&
!isAutoRangeStart(day) &&
!(isBetween(day) && props.weekPicker) &&
!isRangeEnd,
dp__cell_highlight_active:
!disableHighlight(day) && (highlighted(day) || highlightedWeekDay(day)) && isActive(day),
dp__today: !props.noToday && isDateEqual(day.value, today.value) && day.current,
Expand Down

0 comments on commit 5292daf

Please sign in to comment.