Skip to content

Commit

Permalink
Merge branch 'main' into pr/benasher44/2249
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Jul 13, 2024
2 parents 4a94ad2 + f0489c3 commit 532c1eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DayPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ export function DayPicker(props: DayPickerProps) {
if (!dayModifiers.hidden && focused)
dayModifiers[DayFlag.focused] = true;

const selected = isSelected(date);
const selected =
isSelected(date) || dayModifiers.selected;

dayModifiers[SelectionState.selected] =
!dayModifiers.disabled && selected;
Expand Down

0 comments on commit 532c1eb

Please sign in to comment.