From 49b4d13e9a2ed04e9b57e8416d5d6c1f1e60392d Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 12 Apr 2022 16:44:59 +0200 Subject: [PATCH] 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 --- src/core/directives/collapsible-footer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/directives/collapsible-footer.ts b/src/core/directives/collapsible-footer.ts index e90806092..173d0ac44 100644 --- a/src/core/directives/collapsible-footer.ts +++ b/src/core/directives/collapsible-footer.ts @@ -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();