MOBILE-3833 core: Remove element on destroy
Angular usually removes elements, but in the collapsible-footer it needs to be done manually because it was moved to a different containermain
parent
e7eac8f0d9
commit
49b4d13e9a
|
@ -254,6 +254,7 @@ export class CoreCollapsibleFooterDirective implements OnInit, OnDestroy {
|
||||||
this.page.removeEventListener('ionViewDidEnter', this.pageDidEnterListener);
|
this.page.removeEventListener('ionViewDidEnter', this.pageDidEnterListener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.element?.remove();
|
||||||
this.resizeListener?.off();
|
this.resizeListener?.off();
|
||||||
this.slotPromise?.cancel();
|
this.slotPromise?.cancel();
|
||||||
this.viewportPromise?.cancel();
|
this.viewportPromise?.cancel();
|
||||||
|
|
Loading…
Reference in New Issue