We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e84805 + 863796b commit c4960c2Copy full SHA for c4960c2
src/librustdoc/html/static/main.js
@@ -379,9 +379,13 @@ function getSearchElement() {
379
380
set_fragment(cur_id);
381
}
382
- } else if (hasClass(document.getElementById("help"), "hidden") === false) {
383
- addClass(document.getElementById("help"), "hidden");
384
- removeClass(document.body, "blur");
+ } else if (hasClass(getHelpElement(), "hidden") === false) {
+ var help = getHelpElement();
+ var is_inside_help_popup = ev.target !== help && help.contains(ev.target);
385
+ if (is_inside_help_popup === false) {
386
+ addClass(help, "hidden");
387
+ removeClass(document.body, "blur");
388
+ }
389
} else {
390
// Making a collapsed element visible on onhashchange seems
391
// too late
0 commit comments