react-date-range
react-date-range copied to clipboard
When set the `minDate` or `maxDate` for calendar, the month selector also need to consider the date range.
Subject of the issue
When set the minDate or maxDate for calendar, the month selector also need to consider the date range.
[BUG] Bug Reproduce Steps
I set the maxDate to 2022-4-5, when I choose the year of 2022 on year selector, the months shown in the month selector should not be greater than 4.
[BUG] Expected behaviour
The months displayed in the selector should be 1, 2, 3, 4
Environment
Package Version: React version: 16.12.0 Node version: 14 Browser: chrome 100.0.4896.60