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 container
main
Noel De Martin 2022-04-12 16:44:59 +02:00
parent e7eac8f0d9
commit 49b4d13e9a
1 changed files with 1 additions and 0 deletions

View File

@ -254,6 +254,7 @@ export class CoreCollapsibleFooterDirective implements OnInit, OnDestroy {
this.page.removeEventListener('ionViewDidEnter', this.pageDidEnterListener);
}
this.element?.remove();
this.resizeListener?.off();
this.slotPromise?.cancel();
this.viewportPromise?.cancel();