I'd like to be able to transform values as they are changed, e.g. coerce text field into a number. Seems the only option to do this with formik is to do all the value formatting in the form's onSubmit. Would be good if there were a way to inject a mapping function that's called each time an input value changes.
You can pass your own onChange handler, do what you need and programmatically call setFieldValue provided from Formik.
@prichodko this is a reasonable workaround.
Most helpful comment
You can pass your own
onChangehandler, do what you need and programmatically callsetFieldValueprovided from Formik.