From f0489c31a6ce05cd6a75016bf7ae9e889be4e340 Mon Sep 17 00:00:00 2001 From: Giampaolo Bellavite Date: Sat, 13 Jul 2024 18:48:26 -0500 Subject: [PATCH] fix: custom selected modifier --- src/DayPicker.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DayPicker.tsx b/src/DayPicker.tsx index bf88b0151..e2b58ca5e 100644 --- a/src/DayPicker.tsx +++ b/src/DayPicker.tsx @@ -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;