From 27274c84d66ce0796dc739b2634975428d7088a8 Mon Sep 17 00:00:00 2001 From: sercan Date: Thu, 24 Jun 2021 18:04:19 +0300 Subject: [PATCH] (@fuse/navigation) Fixed: Vertical navigation blocks scroll if it's destroyed while in 'over' mode and opened --- .../components/navigation/vertical/vertical.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/@fuse/components/navigation/vertical/vertical.component.ts b/src/@fuse/components/navigation/vertical/vertical.component.ts index b5eb8da9..8bb9a87b 100644 --- a/src/@fuse/components/navigation/vertical/vertical.component.ts +++ b/src/@fuse/components/navigation/vertical/vertical.component.ts @@ -374,6 +374,10 @@ export class FuseVerticalNavigationComponent implements OnChanges, OnInit, After */ ngOnDestroy(): void { + // Forcefully close the navigation and aside in case they are opened + this.close(); + this.closeAside(); + // Deregister the navigation component from the registry this._fuseNavigationService.deregisterComponent(this.name);