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
In the form tag you should write the following:
and inside the form you should have submit button:
And most importantly, if you have any other buttons in your form you should add type="button" to them. Leaving the default type attribute (which I think is submit) will cause the warning message.
type="button"
type
submit