From 846cd01f67e0b9ea53ddea4e24717a89f565d954 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 24 Oct 2022 15:22:55 +0200 Subject: [PATCH] MOBILE-4164 core: Remove core-fab on destroy --- src/core/directives/fab.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/directives/fab.ts b/src/core/directives/fab.ts index fe18f8274..d8745f26a 100644 --- a/src/core/directives/fab.ts +++ b/src/core/directives/fab.ts @@ -76,6 +76,8 @@ export class CoreFabDirective implements OnInit, OnDestroy { * @inheritdoc */ ngOnDestroy(): void { + this.element.remove(); + if (this.content) { this.content.style.setProperty('--padding-bottom', this.initialPaddingBottom + 'px'); }