Open Saix1020 opened 2 years ago
When set the minDate or maxDate for calendar, the month selector also need to consider the date range.
minDate
maxDate
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.
2022-4-5
4
The months displayed in the selector should be 1, 2, 3, 4
1, 2, 3, 4
Package Version: React version: 16.12.0 Node version: 14 Browser: chrome 100.0.4896.60
Subject of the issue
When set the
minDate
ormaxDate
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 than4
.[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