jannikbuschke / formik-antd

Simple declarative bindings for Ant Design and Formik.
https://codesandbox.io/s/github/jannikbuschke/formik-antd-example
MIT License
587 stars 81 forks source link

Submit only gets values of inputs that had events #163

Closed rigorio closed 3 years ago

rigorio commented 3 years ago

This is somewhat related to my other issue.

Basically, if I have an input with a predefined value and then submit that form, the value is not retrieved. Only until I press a key on that input.

jannikbuschke commented 3 years ago

You should use Formiks initialValues prop to provide initial values.