Closed lbineau closed 2 years ago
When the component is nested into a <form> the button is considered as type="submit" by default. Forcing type="button" allows preventing the form submission.
<form>
type="submit"
type="button"
Brilliant! Should have caught this myself a long time ago. Thanks for the contribution :)
Fix should be out. Also caught a couple of places where this could have been an issue. Thanks again.
When the component is nested into a
<form>
the button is considered astype="submit"
by default. Forcingtype="button"
allows preventing the form submission.