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 22103e7 commit 0b1328aCopy full SHA for 0b1328a
assets/js/sidebar/sidebar-list.js
@@ -192,10 +192,15 @@ function markCurrentHashInSidebar () {
192
if (!current) return
193
194
// Unset previous.
195
- sidebar.querySelectorAll('li a[aria-selected]').forEach(element => {
+ sidebar.querySelectorAll('.full-list a[aria-selected]').forEach(element => {
196
element.removeAttribute('aria-selected')
197
})
198
199
+ // Close open menus.
200
+ sidebar.querySelectorAll('.full-list button[aria-expanded=true]').forEach(element => {
201
+ element.setAttribute('aria-expanded', false)
202
+ })
203
+
204
// Walk up parents, updating link, button and tab attributes.
205
let element = current.parentElement
206
while (element) {
0 commit comments