I am building a form using React, Typescript and Formik. The form has three inputs. I want to prevent the form from submitting when the user presses enter in the input fields.
My first approach was using the event.preventDefault() statement, but that didn't work. Then I found this solution here on stackoverflow, but in this solution the Formik component is used and not the useFormik hook.
So I wounder how to disable form submit on enter with useFormik?