react-datepicker
react-datepicker copied to clipboard
Previous month button appears when date is selected (when using minDate and showing more than 1 month)
Describe the bug
The button for navigating to the previous month is hidden when the first visible month contains the minDate
. However, if a date is selected from another visible month, the button appears.
To Reproduce
Set up a date picker with minDate={new Date()}
and monthsShown={2}
. By default, when opening the date picker, the first month shown is the current month, and the button is hidden. Click a date in the upcoming month, and see the button appear.
Expected behavior
The button should stay hidden.
Screenshots
Desktop (please complete the following information):
- OS: iOS
- Browser: Chrome
- Version: 3.8.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days.
This issue was closed because it has been stalled for 10 days with no activity.