(not not) operator in JavaScript? Not the answer you're looking for? When you call the form's submit function, the submit event is not fired. There are no issues with validation, because the button becomes enabled only if it satisfies the validation parameters. Already on GitHub? Well occasionally send you account related emails. Flavors of Validation I think you should call the second argument of the onSubmit method actions instead, and use actions.setSubmitting instead of just setSubmitting since it is an object that gets passed to it, and not a function. Thanks for the hint. How to consistently tamper with form submission in Javascript, custom JS form submit does not stop onsubmit handler to debug. (Note that this is true of the HTMLFormElement#submit function; it is not necessarily true of the wrappers libraries put around it.). Yup, this was a while ago but I remember now, removing the, FYI, this causes the form to be submitted twice. This is my form now: @user1667191: Or better yet, use a modern event handler attached via. I tried it and it worked without any issues. An inf-sup estimate for holomorphic functions. By clicking Sign up for GitHub, you agree to our terms of service and