diff --git a/src/core/features/compile/components/compile-html/compile-html.ts b/src/core/features/compile/components/compile-html/compile-html.ts index 4b9a51ab1..010fa869e 100644 --- a/src/core/features/compile/components/compile-html/compile-html.ts +++ b/src/core/features/compile/components/compile-html/compile-html.ts @@ -138,6 +138,10 @@ export class CoreCompileHtmlComponent implements OnChanges, OnDestroy, DoCheck { this.container, this.extraImports, ); + + this.element.addEventListener('submit', (event) => { + event.preventDefault(); + }); } this.componentRef && this.created.emit(this.componentRef.instance);