Open
Description
The disabledDate API works great for discrete ranges of date, but it would be nice to be able to disable dates in such a way that next/previous arrows are also disabled, and to hide invalid months or years in the date picker that fall outside of the range.
For example: When entering birthdate, dates in the future may not be needed. When scheduling an appointment, dates in the past may not be needed.
Ideally, setting a maxDate to new Date()
would:
- Disable the rest of days in the current month
- Disable the next / double next arrows
- Hide future months in the month picker
- Hide future years in the year picker