diff --git a/public/template/src/js/components/nav.js b/public/template/src/js/components/nav.js index c244cbc5..80e6e1ad 100644 --- a/public/template/src/js/components/nav.js +++ b/public/template/src/js/components/nav.js @@ -22,6 +22,8 @@ class Nav { if (langSwitch) { self.handleToggle(langSwitch, 'switchsettings'); } + + let activeItem = document.querySelector() } collapseNavigation() { @@ -67,7 +69,7 @@ class Nav { } activepageItem.scrollIntoView(); } - + // expand first item if no active item exists (e.i. root page) if (document.querySelector('.c-nav__item--active') === null) { let firstItem = document.querySelector('.c-nav__item:first-of-type');