[DateCalendar] Calendar view reverts to wrong year when using shouldDisableDate #15428
Labels
bug 🐛
Something doesn't work
component: pickers
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
Steps to reproduce
Steps:
Current behavior
Notice that the date is not what you selected - reverts to September 2022, or the last year that you've viewed with non-disabled dates
Expected behavior
The calendar should stay on the month/year that you selected
Context
This only happens when selecting a date within a large range of disabled dates, e.g. selecting Sept 2025 when all of 2025 is disabled. Adding one non-disabled date in 2025 solves it for that year, but the problem continues for other years in the future.
Your environment
npx @mui/envinfo
Search keywords: shouldDisableDate, monthCalendar
The text was updated successfully, but these errors were encountered: