diff --git a/api/js/etemplate/Et2Dialog/Et2Dialog.ts b/api/js/etemplate/Et2Dialog/Et2Dialog.ts index c8bdf83297..b9e18a55c8 100644 --- a/api/js/etemplate/Et2Dialog/Et2Dialog.ts +++ b/api/js/etemplate/Et2Dialog/Et2Dialog.ts @@ -275,6 +275,10 @@ export class Et2Dialog extends Et2Widget(ScopedElementsMixin(SlotMixin(LionDialo this.dispatchEvent(new Event('close')); // No real need to do this automatically, dialog could be reused without this + if(this._template_widget) + { + this._template_widget.clear(); + } this._overlayCtrl.teardown(); this.remove(); }