You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use Formik 2.2.5 and want to implement an onchange event to my select field
My select field without the onchange event is working as expected:
Now as soon, as I implement the onchange event it always returns 0 when submitting:
Here is the code of the onchange handler
The console.log also returns the correct number, but the value I get from the onSubmit event is always 0.
Am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions