Rollup merge of #65741 - GuillaumeGomez:help-popup, r=Dylan-DPC
Prevent help popup to disappear when clicking on it Fixes #65736. r? @kinnison
This commit is contained in:
commit
c4960c2602
1 changed files with 7 additions and 3 deletions
|
@ -379,9 +379,13 @@ function getSearchElement() {
|
|||
|
||||
set_fragment(cur_id);
|
||||
}
|
||||
} else if (hasClass(document.getElementById("help"), "hidden") === false) {
|
||||
addClass(document.getElementById("help"), "hidden");
|
||||
} else if (hasClass(getHelpElement(), "hidden") === false) {
|
||||
var help = getHelpElement();
|
||||
var is_inside_help_popup = ev.target !== help && help.contains(ev.target);
|
||||
if (is_inside_help_popup === false) {
|
||||
addClass(help, "hidden");
|
||||
removeClass(document.body, "blur");
|
||||
}
|
||||
} else {
|
||||
// Making a collapsed element visible on onhashchange seems
|
||||
// too late
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue