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
I'm using Formik on a React Native app and I have two fields, discount percentage and discount value. When I change the discount percentage, the discount value changes and vice versa. I execute this process at onBlur function. But, when the user clicks to submit the form, the submit function is executing before the onBlur is called.
Additional context
I made a workaround using a state, verifying if the field has already passed on onBlur function, on submit function, but I think this is not the best approach.
Bug report
Current Behavior
I'm using Formik on a React Native app and I have two fields, discount percentage and discount value. When I change the discount percentage, the discount value changes and vice versa. I execute this process at onBlur function. But, when the user clicks to submit the form, the submit function is executing before the onBlur is called.
Additional context
I made a workaround using a state, verifying if the field has already passed on onBlur function, on submit function, but I think this is not the best approach.
Also, I'm using the useFormik hook with this settings
If more info is needed, I can provide more, but, since the project has a lot of fields and details, I can't provide any reproducible code.
Your environment
The text was updated successfully, but these errors were encountered: