jquense / react-formal

Sophisticated HTML form management for React
http://jquense.github.io/react-formal
MIT License
526 stars 52 forks source link

Defaulting a `yup.date` input does not render #179

Open ethanve opened 3 years ago

ethanve commented 3 years ago

Hey Jason!

Playing around with V2 and loving it. I noticed that creating a yup.date with a default value doesn't actually render the default. Example here: https://codesandbox.io/s/lucid-sky-07247?file=/src/App.js

Happy to take a stab at a fix if this is an actual issue

jquense commented 3 years ago

👋 it seems to work with type='date-local' on the field, not sure why the others don't tho. If you want to investigate i'd appreciate it