Fix global ToC js error in console
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8306cc774c
commit
cd7d744d9b
1 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,10 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
if (parentMenu.classList.contains('subMenu')) { // child
|
||||
parentMenu.previousElementSibling.previousElementSibling.checked = false;
|
||||
} else { // parent
|
||||
activeDocPage.nextElementSibling.checked = false;
|
||||
}
|
||||
if (activeDocPage.nextElementSibling) {
|
||||
activeDocPage.nextElementSibling.checked = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener('scroll', function() {
|
||||
|
|
Loading…
Reference in a new issue