I have a modal that contains a form, when the modal is destroyed I get the following error in the console:
Form submission canceled because the form i
I had this problem recently and event.preventDefault() worked for me. Add it to your click event method.
event.preventDefault()
Save
And:
submitForm(event: Event) { event.preventDefault(); // ... }