There’s more than one button inside my form. Only one should cause the form submit. But all buttons causes form submit, don’t matter if the buttons are of submit type or not.
How to avoid form submit?
There’s more than one button inside my form. Only one should cause the form submit. But all buttons causes form submit, don’t matter if the buttons are of submit type or not.
How to avoid form submit?
You need put the type as button and only on submit like this
<button ion-button type="button">Button 1</button>
<button ion-button type="button">Button 2</button>
<button ion-button type="button">Button 3</button>
<button ion-button type="submit">Submit</button>