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
In my component, the startDate & endDate props are powered by a select's value in a form. When a new option is selected the startDate & endDate do update as expected and are selected correctly in the range, however, the visible month does not change. I don't necessarily think this is a bug, but I am unsure if there is a way that if the startDate or endDate updates that the visible month jumps to the startDate month?
Source code (including props configuration)
Steps to reproduce the behavior:
When clicking on the Add 2 Months + element, it updates the startDate & endDate state that powers the startDate and endDate props on DayPickerRangeController, however, the visible month does not update in line with these changes.
Requires this feature as well, also it will be good if clicks on the date input, the calendar could shuffle to the month which has the start date or end date according to the focused input.
react-dates version
react-dates@21.8.0
Describe the bug
In my component, the
startDate
&endDate
props are powered by a select's value in a form. When a new option is selected thestartDate
&endDate
do update as expected and are selected correctly in the range, however, the visible month does not change. I don't necessarily think this is a bug, but I am unsure if there is a way that if thestartDate
orendDate
updates that the visible month jumps to thestartDate
month?Source code (including props configuration)
Steps to reproduce the behavior:
When clicking on the
Add 2 Months +
element, it updates thestartDate
&endDate
state that powers thestartDate
andendDate
props onDayPickerRangeController
, however, the visible month does not update in line with these changes.Screenshots/Gifs
https://user-images.githubusercontent.com/20436343/233184001-a85714b8-c2e5-4cb0-a756-4cf13e198ebf.mov
Desktop (please complete the following information):
Additional context
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: