New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onPaste + setFieldValue does not work as intended #3932
Labels
Comments
event.preventDefault() seems to sort it, not sure if this is just my miss here |
Seems like it is not formik error itself. Yes
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Current Behavior
When trying to setFieldValue within onPaste callback prepends the field value instead of replacing it.
Expected behavior
setFieldValue should replace the field value
Reproducible example
The templates are outdated (very old React/Formik versions) I couldn't get them to work without refactoring the entire thing.
This is the code I'm using
Your environment
The text was updated successfully, but these errors were encountered: