[pickers][DatePicker] Incorrect display of value in input field when Controlled component #14519
Labels
bug 🐛
Something doesn't work
component: date picker
This is the name of the generic UI component, not the React module!
component: pickers
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-4eslb9?file=Demo.tsx
Steps:
DatePickerValue-demo-.-MUI-X---StackBlitz.webm
Current behavior
After first select input displays the first day of the selected month, but after second select the selected one is displayed, even though the one of the first day of the month is passed in the variable
Expected behavior
DatePicker after the change will take the value that was passed using the variable
Context
When creating a component with a lock on the need to select the date of the first day of the month, there is an inconsistency between the displayed date and the one we have stored
Your environment
npx @mui/envinfo
Search keywords: datepicker value controlled
Search keywords:
The text was updated successfully, but these errors were encountered: