Formik: Property "touched" computed only on submit

Created on 18 Oct 2017  路  1Comment  路  Source: formium/formik

Hi,

is it possible to update "touched" in "handleChange" similar to "errors". Actually it will be computed only on submits. Using a combination of "handleChange" and "setTouched" could be one manual option but brings a lot of boilerplate. A new parameter would be nice to make "touched" parameter holding the live state instead of getting computed on submits.

>All comments

You can create a custom that does not pass props.field.handleBlur to your input's onBlur and (i think) that would work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jucesr picture Jucesr  路  3Comments

emartini picture emartini  路  3Comments

Jungwoo-An picture Jungwoo-An  路  3Comments

jaredpalmer picture jaredpalmer  路  3Comments

pmonty picture pmonty  路  3Comments