From fefc822d9ce3cc90e479f447db0a27bf90b5df80 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 18 Mar 2022 14:05:57 -0600 Subject: [PATCH] Et2Dialog changes - Fire a close event on close - When closing, clear the template (if present) --- api/js/etemplate/Et2Dialog/Et2Dialog.ts | 4 ++++ 1 file changed, 4 insertions(+) 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(); }