Describe the bug
I'm using Formik and Yup for handling form and validation. The problem is that , I've implemented my own buttons in each component with type="submit" and each component has the <Formik> component.
When I press the Enter key, I want this button to be performed but it is not working.
It just takes me to another step without calling the function I add on onSubmit
If I add the preventEnterSubmission property, then nothing is happening on pressing Enter key
Describe the bug
I'm using
FormikandYupfor handling form and validation. The problem is that , I've implemented my own buttons in each component with type="submit" and each component has the<Formik>component.When I press the
Enterkey, I want this button to be performed but it is not working.It just takes me to another step without calling the function I add on
onSubmitIf I add the
preventEnterSubmissionproperty, then nothing is happening on pressingEnterkey