Fix global ToC js error in console
This commit is contained in:
parent
8306cc774c
commit
cd7d744d9b
1 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,9 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||||
if (parentMenu.classList.contains('subMenu')) { // child
|
if (parentMenu.classList.contains('subMenu')) { // child
|
||||||
parentMenu.previousElementSibling.previousElementSibling.checked = false;
|
parentMenu.previousElementSibling.previousElementSibling.checked = false;
|
||||||
} else { // parent
|
} else { // parent
|
||||||
activeDocPage.nextElementSibling.checked = false;
|
if (activeDocPage.nextElementSibling) {
|
||||||
|
activeDocPage.nextElementSibling.checked = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue