Merge pull request #3418 from NoelDeMartin/MOBILE-4164

MOBILE-4164 core: Remove core-fab on destroy
main
Dani Palou 2022-10-25 07:53:07 +02:00 committed by GitHub
commit 88ded02d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');
}