Skip to content

Commit

Permalink
fix: set current date based on selected date changes
Browse files Browse the repository at this point in the history
  • Loading branch information
farhoudshapouran committed Feb 18, 2025
1 parent 894eda0 commit 2041aae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/datetime-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ const DateTimePicker = (
return {
...prevState,
date: selectedDate,
currentDate: selectedDate,
};
case CalendarActionKind.CHANGE_SELECTED_RANGE:
const { startDate: start, endDate: end } = action.payload;
Expand Down

0 comments on commit 2041aae

Please sign in to comment.