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 13a2615 commit 33a7098Copy full SHA for 33a7098
src/librustdoc/html/static/main.js
@@ -1422,11 +1422,13 @@ function hideThemeButtonState() {
1422
// errors in mobile browsers).
1423
if (e.tagName === "H2" || e.tagName === "H3") {
1424
var nextTagName = e.nextElementSibling.tagName;
1425
- if (nextTagName == "H2" || nextTagName == "H3") {
+ if (nextTagName === "H2" || nextTagName === "H3") {
1426
e.nextElementSibling.style.display = "flex";
1427
- } else {
+ } else if (nextTagName !== "DETAILS") {
1428
e.nextElementSibling.style.display = "block";
1429
}
1430
+ } else if (e.tagName === "DETAILS") {
1431
+ e.open = true;
1432
1433
});
1434
0 commit comments