File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -926,6 +926,7 @@ function loadCss(cssFileName) {
926
926
function showHelp ( ) {
927
927
const menu = getHelpMenu ( true ) ;
928
928
if ( menu . style . display === "none" ) {
929
+ window . hidePopoverMenus ( ) ;
929
930
menu . style . display = "" ;
930
931
}
931
932
}
@@ -939,6 +940,8 @@ function loadCss(cssFileName) {
939
940
const shouldShowHelp = menu . style . display === "none" ;
940
941
if ( shouldShowHelp ) {
941
942
showHelp ( ) ;
943
+ } else {
944
+ window . hidePopoverMenus ( ) ;
942
945
}
943
946
} ) ;
944
947
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ click: "#help-button"
24
24
assert-css: ("#help-button .popover", {"display": "block"})
25
25
assert-css: ("#settings-menu .popover", {"display": "none"})
26
26
27
+ // Now verify that clicking the help menu again closes it.
28
+ click: "#help-button"
29
+ assert-css: ("#help-button .popover", {"display": "none"})
30
+ assert-css: ("#settings-menu .popover", {"display": "none"})
31
+
27
32
// We check the borders color now:
28
33
29
34
// Ayu theme
You can’t perform that action at this time.
0 commit comments