From 12493f414aa2e9af76192fd646391e79d8155b32 Mon Sep 17 00:00:00 2001 From: Mark Hamstra Date: Fri, 16 Apr 2021 17:53:57 +0200 Subject: [PATCH] Change various upgrade docs to be in a more logical order with similar titles --- public/template/src/js/components/nav.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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');