MOBILE-4164 core: Remove core-fab on destroy

main
Noel De Martin 2022-10-24 15:22:55 +02:00
parent 153c8a6d02
commit 846cd01f67
1 changed files with 2 additions and 0 deletions

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