Skip to content

Commit 1afea79

Browse files
Fix expansion for item pointed to by the URL hash
1 parent 175cd9b commit 1afea79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/html/static/main.js

+2
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,8 @@ function hideThemeButtonState() {
480480
}
481481
// Open all ancestor <details> to make this element visible.
482482
openParentDetails(h3.parentNode);
483+
} else {
484+
openParentDetails(elem.parentNode);
483485
}
484486
}
485487
}

0 commit comments

Comments
 (0)