[DesktopDatePicker] does not allow user to pick the same date (in diff year) when it is already selected in another year #4613
Labels
bug 🐛
Something doesn't work
component: DatePicker
The React component.
component: pickers
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Duplicates
Latest version
Current behavior 😯
I have a DesktopDatePicker in a form and after a user selects a certain date (e.g. 04/21/2022) and reopens the picker, they naturally cannot pick the exact same day again since it's already selected. However, even after switching the year (e.g. 2021), the current date of 04/21 still has the dark blue outline and cannot be picked.
Expected behavior 🤔
The user should be able to switch years and select the same date in a previous year.
Steps to reproduce 🕹
Steps:
Sample implemented here:
Context 🔦
https://codesandbox.io/embed/white-wood-p10l6l?fontsize=14&hidenavigation=1&theme=dark
Your environment 🌎
`npx @mui/envinfo`
The text was updated successfully, but these errors were encountered: