Skip to content

Commit

Permalink
Support selecting of initialmode
Browse files Browse the repository at this point in the history
  • Loading branch information
sebimarkgraf committed Feb 15, 2024
1 parent 537a0bb commit 10e86b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DateTimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const DateTimePicker = (
endDate,
dates,
onChange,
startLevel = CalendarViews.day,
...rest
} = props;

Expand Down Expand Up @@ -149,7 +150,7 @@ const DateTimePicker = (
startDate,
endDate,
dates,
calendarView: CalendarViews.day,
calendarView: startLevel,
currentDate,
currentYear,
}
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ export interface DatePickerBaseProps {
startDate?: DateType;
endDate?: DateType;
onChange?: SingleChange | RangeChange | MultiChange;
startLevel?: CalendarViews;
}

0 comments on commit 10e86b5

Please sign in to comment.