valueAsDate does not behave as per the documentation #5879
-
According to the documentation:
But null never gets returned. A peek into the code shows this line:
What this implies is that RHF will first try to use the native value as date function which indeed returns
This according to the Javascript docs. I like the behaviour given in the docs, but the code will never give these results. Instead I'll to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think i will update the doc on this, return null is probably not appropriate for input, since input will always default to |
Beta Was this translation helpful? Give feedback.
I think i will update the doc on this, return null is probably not appropriate for input, since input will always default to
string