MOBILE-4164 core: Remove core-fab on destroy

This commit is contained in:
Noel De Martin 2022-10-24 15:22:55 +02:00
parent 153c8a6d02
commit 846cd01f67

View File

@ -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');
}