[DatePicker] Dynamic inputFormat
not working as expected
#6584
Labels
bug 🐛
Something doesn't work
component: pickers
This is the name of the generic UI component, not the React module!
feature: Keyboard editing
Related to the pickers keyboard edition
feature: Mask editing
Will be removed once we have the new field components.
Duplicates
Latest version
Current behavior 😯
When
inputFormat
is changed fromdd.MM.yyyy
toyyyy
the displayed value isddMM
(date and month) instead of year.Expected behavior 🤔
When
inputFormat
is changed fromdd.MM.yyyy
toyyyy
the displayed value should be the year of the date value.Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/amazing-antonelli-mjzri5?file=/demo.tsx
Steps:
0101
instead of2022
Context 🔦
No response
Your environment 🌎
No response
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: