fix(overlays): close overlay upon disconnectedCallback

This commit is contained in:
Joren Broekema 2019-11-28 16:23:31 +01:00 committed by Thomas Allmer
parent d1a410346d
commit ab5cb627af

View file

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