Browse Source

Fix collapsible sidebar not working

pull/6176/head
Rapptz 5 years ago
parent
commit
eba0aaa351
  1. 6
      docs/_static/sidebar.js

6
docs/_static/sidebar.js

@ -41,9 +41,9 @@ class Sidebar {
icon.addEventListener('click', () => {
if (icon.classList.contains('expanded')) {
collapseSection(icon);
this.collapseSection(icon);
} else {
expandSection(icon);
this.expandSection(icon);
}
})
@ -63,7 +63,7 @@ class Sidebar {
icon.classList.add('collapsed');
icon.innerText = 'chevron_right';
let children = icon.nextElementSibling.nextElementSibling;
// <arrow><heading>
// <arrow><heading>
// --> <square><children>
children.style.display = "none";
}

Loading…
Cancel
Save