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 8231e85 commit 3ad7686Copy full SHA for 3ad7686
src/librustdoc/html/static/js/main.js
@@ -1081,7 +1081,11 @@ function preLoadCss(cssUrl) {
1081
1082
onEachLazy(document.querySelectorAll(".toggle > summary:not(.hideme)"), el => {
1083
el.addEventListener("click", e => {
1084
- if (e.target.tagName !== "SUMMARY" && e.target.tagName !== "A") {
+ if (
1085
+ e.target.tagName !== "SUMMARY"
1086
+ && e.target.tagName !== "A"
1087
+ && !(e.target.tagName == "CODE" && e.target.parentNode.tagName == "A")
1088
+ ) {
1089
e.preventDefault();
1090
}
1091
});
0 commit comments