Skip to content

Commit db92c1e

Browse files
authored
don't focus calendar when it is first rendered (#180)
1 parent 251f298 commit db92c1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

primitives/src/calendar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ pub fn Calendar(props: CalendarProps) -> Element {
525525

526526
// Create base context provider for child components
527527
let mut base_ctx = use_context_provider(|| BaseCalendarContext {
528-
focused_date: Signal::new(props.selected_date.cloned()),
528+
focused_date: Signal::new(None),
529529
view_date: props.view_date,
530530
set_view_date: props.on_view_change,
531531
available_ranges,

0 commit comments

Comments
 (0)