-
Notifications
You must be signed in to change notification settings - Fork 1.1k
selectEvent.select -- not updating Formik fieldValue/Context #895
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
Comments
Hi I'm having a similar issue but with react-hook-form. Did you make any progress on this? I saw this related to bug #908, but this appears to affect inputs that return events |
It doesn't look like this bug report has enough info for one of us to reproduce it. Please provide a CodeSandbox, or a link to a repository on GitHub. The provided code contains references to variables that are not declared in the code, making it harder to reproduce the issue. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve |
Makes sense. I can reproduce this locally with a minimal example but I'm struggling in code sandbox simply because I can't seem to select an item using I posted an issue here, but if anyone knows how to do this, I would really appreciate some help @eps1lon would if it's not possible to select an element via react-select in code sandbox would you accept a zipped minimal project attached here that could be run locally? Is there some other way I can create a reproduction? |
A cloneable repository works as well. Either as a zip or hosted on github. |
Closing since no reproduction was provided in 3 months. |
Hello,
I am testing a react component wrapped in a Formik context
regular input fields work just fine - but for some reason Select fields do not update the Formik context
@testing-library/react
version: ^11.1.0Test:
What you did:
The Address is updated with a fireEvent.chagne, works just fine.
The state, however does not get updated no matter the approach.
Also tried to set the value of the state select with an fireEvent.change (didn't work)
and with selectEvent.open(state) fireEvent.click(screen.getByText('California')) - also did not work.
Problem description:
Formik field value not updated with select event.
The text was updated successfully, but these errors were encountered: