Merge pull request #3249 from NoelDeMartin/MOBILE-3833

MOBILE-3833 core: Remove element on destroy
main
Dani Palou 2022-04-12 17:01:27 +02:00 committed by GitHub
commit a08260d180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.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();