But basically while inside a form when using a button element without a type it will default to <button type=submit> this will cause the parent form to submit, while this could be handled on the form, there shouldn't be a need for extra code circumvent this.
Adding the type attribute to the buttons avoids this issue and doesn't mess with current functionality
See https://stackoverflow.com/a/3315016/701444 for some reference.
But basically while inside a
form
when using abutton
element without a type it will default to<button type=submit>
this will cause the parent form to submit, while this could be handled on the form, there shouldn't be a need for extra code circumvent this.Adding the
type
attribute to the buttons avoids this issue and doesn't mess with current functionality