fix(overlays): close overlay upon disconnectedCallback
This commit is contained in:
parent
d1a410346d
commit
ab5cb627af
1 changed files with 1 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ export const OverlayMixin = dedupeMixin(
|
|||
if (super.disconnectedCallback) {
|
||||
super.disconnectedCallback();
|
||||
}
|
||||
this.opened = false;
|
||||
this._overlayCtrl.contentNode.removeEventListener(this.closeEventName, this.__close);
|
||||
this._teardownOpenCloseListeners();
|
||||
this._overlayCtrl.teardown();
|
||||
|
|
|
|||
Loading…
Reference in a new issue