DatePicker
default value is string giving errors
#47850
Unanswered
bombillazo
asked this question in
Q&A
Replies: 2 comments
-
Hello, the same issue |
Beta Was this translation helpful? Give feedback.
0 replies
-
At present, no. You should use day.js to wrap the default string. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, when we pass a string value to a DatePicker, we get a
date.isValid is not a function
error, presumably because the default passed is a string and is not being converted to a dayjs object. These values come directly from our database call and we'd like a way for Datepicker components to automatically convert any string value it receives to a dayjs object. How can this be achieved directly with the DatePicker component?Beta Was this translation helpful? Give feedback.
All reactions