MOBILE-3947 compile: Fix plugins reloading the app when submitting form

main
Dani Palou 2024-02-06 11:38:42 +01:00
parent 0541415a5a
commit 7b1cc71210
1 changed files with 4 additions and 0 deletions

View File

@ -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);