Et2Dialog changes

- Fire a close event on close
- When closing, clear the template (if present)
This commit is contained in:
nathan 2022-03-18 14:05:57 -06:00
parent 046599af2f
commit fefc822d9c

View File

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