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

najisawas picture najisawas  路  3Comments

jaredpalmer picture jaredpalmer  路  3Comments

dearcodes picture dearcodes  路  3Comments

PeerHartmann picture PeerHartmann  路  3Comments

green-pickle picture green-pickle  路  3Comments