Closed
Description
🐛 Bug report
Current Behavior
I have a complex component that reformats the user input when they blur the component. When using <Field component={Component}/>
the validation runs on the previous value.
Expected behavior
Validation should run on the state after the onBlur
.
Reproducible example
https://codesandbox.io/s/formik-codesandbox-template-1ewgq
Suggested solution(s)
N/A
Additional context
Your environment
Software | Version(s) |
---|---|
Formik | 2.0.7 |
React | 16.12.0 |
TypeScript | N/A |
Browser | Chrome 78.0.3904.108 |
npm/Yarn | N/A |
Operating System | MacOS 10.14.6 |