@datepicker-react/hooks or @datepicker-react/styled version
e.g. @datepicker-react/hooks@2.8.4
Describe the bug
When passing in a startDate and endDate parameter to the in addition to a initialVisibleMonth useDatePicker hook, the initialVisibleMonth is ignored, and the the initialVisibleMonth defaults to the startDate
Source code (including props configuration)
Steps to reproduce the behavior:
@datepicker-react/hooks or @datepicker-react/styled version e.g. @datepicker-react/hooks@2.8.4
Describe the bug When passing in a
startDate
andendDate
parameter to the in addition to ainitialVisibleMonth
useDatePicker hook, theinitialVisibleMonth
is ignored, and the the initialVisibleMonth defaults to thestartDate
Source code (including props configuration) Steps to reproduce the behavior:
codeSandbox link
Screenshots/Gifs If applicable, add screenshots or gifs to help explain your problem.
initialVisibleMonth
param respected:initialVisibleMonth
ignored, view is set tostartDate
:Desktop (please complete the following information): N/A
Smartphone (please complete the following information): N/A
Is the issue reproducible in Storybook? Unknown - netlify link returns a 404
Additional context Add any other context about the problem here. It is an edge case where the datepicker is pre-filled with a range over 2 months.
I have been using this as a workaround
as a workaround to go to the current date