@djheru Your solution is correct because Formik sets touched
flags on blur
event instead of on change
. Here is Formik author comment about this:
You have to call Formiks handleBlur
to notify Formik that blur
event has been triggered – so yes, these handlers are needed.