You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When having the DatePicker in inline mode showing, let's say January and user selects February, 1st, the displayed month changes to February.
Expected behavior
The displyed month should not change
Screenshots
after clicking on 2025-02-01 :
Additional context
I tried setting focusSelectedMonth={false} as I read it in another issue but it did not solve the problem.
Actually, I don't know if it is the expected behaviour but it could lead to user experience issues if user does not see that the month has changed, especially when using selectsRange
So it could be great to have a have a way to disable this behaviour.
The text was updated successfully, but these errors were encountered:
ludotg
changed the title
How to prevent month changes when selecting date in the previous or next month in inline mode
Prevent month changes when selecting date in the previous or next month in inline mode
Jan 27, 2025
Describe the bug
When having the DatePicker in inline mode showing, let's say January and user selects February, 1st, the displayed month changes to February.
To Reproduce
Go to inline version demo : https://reactdatepicker.com/#example-inline-version
Stay in the current month view and select the first day of the next month
The displayed month changes to the next month.
Expected behavior
The displyed month should not change
Screenshots
after clicking on 2025-02-01 :
Additional context
I tried setting focusSelectedMonth={false} as I read it in another issue but it did not solve the problem.
Actually, I don't know if it is the expected behaviour but it could lead to user experience issues if user does not see that the month has changed, especially when using selectsRange
So it could be great to have a have a way to disable this behaviour.
The text was updated successfully, but these errors were encountered: