mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fix collapsible sidebar not working
This commit is contained in:
1 parent
994de512cb
commit
39f1f9098e
1 file changed
+3
-3
Vendored
+3
-3
@@ -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";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user