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
Enable greater control over value type of DateInputField by providing prop that will define value type
Current behaviour
Value type is determent by checking instanceof value
Wanted behaviour
Value type will be determent by optional prop format which will be used as format for parsing date to string using datefns. Only if that prop is provided component would set value as string
The text was updated successfully, but these errors were encountered:
@mkatanec-croz you want a prop something like this: mode: 'string' | 'date' so you can force only one value type in form?
And an additional format for the value parsing? Do you need this format be different from display format?
I was thinking in direction of using only format to determinate if the value should be Date or string but your question for display type made me think again about it. I think it would be best to have both format and displayFormat props. format determinates type of value to be stored (Date if prop is not provided and string if prop is provided), displayFormat just defines the format for displaying the value
Basic information
1.7.0
formik-elements
Enhancement description
Enable greater control over value type of DateInputField by providing prop that will define value type
Current behaviour
Value type is determent by checking
instanceof
valueWanted behaviour
Value type will be determent by optional prop
format
which will be used as format for parsing date to string using datefns. Only if that prop is provided component would set value as stringThe text was updated successfully, but these errors were encountered: