From a1aed2998d084bf770e1af33a19c32a5700c64b4 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Mon, 2 Jul 2018 16:46:55 +0300 Subject: [PATCH] (Navbar) Small fix for "scroll the active menu item into the view" --- src/app/layout/components/navbar/navbar.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layout/components/navbar/navbar.component.ts b/src/app/layout/components/navbar/navbar.component.ts index 4809bb61..e4424f8a 100644 --- a/src/app/layout/components/navbar/navbar.component.ts +++ b/src/app/layout/components/navbar/navbar.component.ts @@ -78,7 +78,7 @@ export class NavbarComponent implements OnInit, OnDestroy ) .subscribe(() => { setTimeout(() => { - const activeNavItem = document.querySelector('navbar .nav-link.active'); + const activeNavItem: any = document.querySelector('navbar .nav-link.active'); if ( activeNavItem ) {