8000 Validation runs on old value when onChange is called within onBlur · Issue #2106 · jaredpalmer/formik · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Validation runs on old value when onChange is called within onBlur #2106
Closed
@jamime

Description

@jamime

🐛 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
2019-12-11 11 52 20

Suggested solution(s)

N/A

Additional context

Related #2083, #1977, #2025

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0