You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using DateInput with a custom valueFormat but without the valueParser option looks kind of broken as it does not really allow to type a date. It's fixed by providing a custom dateParser to match the valueFormat props:
Wouldn't it make sense to have this behavior out of the box and update the default dateParser to adapt to the value of the valueFormat prop when parsing dates?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Using DateInput with a custom
valueFormat
but without thevalueParser
option looks kind of broken as it does not really allow to type a date. It's fixed by providing a customdateParser
to match thevalueFormat
props:Wouldn't it make sense to have this behavior out of the box and update the default dateParser to adapt to the value of the valueFormat prop when parsing dates?
Beta Was this translation helpful? Give feedback.
All reactions