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
Maybe you are routing to some other page on your form submission. Use programmatic route navigation, as in the example that follows, rather than passing routerlink into the template:
routerlink
router.navigate(['/your/router/path'])