react-dates version
[email protected]
Describe the bug
Defining initialVisibleMonth prop for DayPickerSingleDateController doesn't do anything.
Source code (including props configuration)
<DayPickerSingleDateController
initialVisibleMonth={() => moment().add(10, "months")}
/>
Is the issue reproducible in Storybook?
https://codesandbox.io/s/romantic-vaughan-yh5ux?file=/src/App.js:267-365
Additional context
I found this issue when tried to block some days on the calendar while using the prop. It caused unexpected behavior with blocking days.
@meness just noticed that it doesn't work without focused prop:
<DayPickerSingleDateController focused initialVisibleMonth={() => moment().add(10, "months")} />
Most helpful comment
@meness just noticed that it doesn't work without focused prop: