I don't expect the form to submit when I click any button that does not have type="submit" or has the submit handler explicitly set on the button.
Formik template: https://codesandbox.io/s/formik-example-rfj49
Only bind the submission handler to buttons with type="submit" and don't bind to all buttons rendered in the form.
| Software | Version(s) |
| ---------------- | ---------- |
| Formik | 1.5.7
| React | 16.8.6
| TypeScript |
| Browser | Chrome
| npm/Yarn | npm
| Operating System | macOS
Closing this as this is not a Formik issue. After reading MDN docs, it's actually normal form element behavior to submit any buttons that do not have the type="button" attribute listed. See the below example:
@antgonzales Could you please provide and MDN link? Actually in the article about button tag it is pointed out that type="button" has no default browser behaviour. Here's the link, here's a screenshot:

Here's a link to the codesandbox that demonstrates buttons behaviour:
https://codesandbox.io/s/winter-violet-rme7d
Figured out the thing with this issue is you need to explicitly pass type="button", since type="submit" is the default HTML value, as you can see on the screenshot above. So this is not formik-related
Most helpful comment
Figured out the thing with this issue is you need to explicitly pass
type="button", sincetype="submit"is the default HTML value, as you can see on the screenshot above. So this is not formik-related