We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e73588 commit 831f523Copy full SHA for 831f523
spec.html
@@ -12,7 +12,10 @@
12
// There aren't many headings, so just expand them all by default.
13
document.addEventListener("DOMContentLoaded", function() {
14
try {
15
- document.querySelectorAll("#menu-toc li").forEach(el => el.click());
+ const menuItems = Array.from(document.querySelectorAll("#menu-toc li"));
16
+ if (!menuItems.some(el => el.classList.has("active"))) {
17
+ menuItems.forEach(el => el.classList.add("active"));
18
+ }
19
} catch (ex) {}
20
});
21
</script>
0 commit comments