File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
src/librustdoc/html/static/js Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,6 @@ function elemIsInParent(elem, parent) {
3535 return false ;
3636}
3737
38- function blurHandler ( event , parentElem , hideCallback ) {
39- if ( ! elemIsInParent ( document . activeElement , parentElem ) &&
40- ! elemIsInParent ( event . relatedTarget , parentElem )
41- ) {
42- hideCallback ( ) ;
43- }
44- }
45-
4638window . rootPath = getVar ( "root-path" ) ;
4739window . currentCrate = getVar ( "current-crate" ) ;
4840
@@ -1045,7 +1037,12 @@ function preLoadCss(cssUrl) {
10451037 }
10461038
10471039 function helpBlurHandler ( event ) {
1048- blurHandler ( event , getHelpButton ( ) , window . hidePopoverMenus ) ;
1040+ const parentElem = getHelpButton ( ) ;
1041+ if ( ! elemIsInParent ( document . activeElement , parentElem ) &&
1042+ ! elemIsInParent ( event . relatedTarget , parentElem )
1043+ ) {
1044+ window . hidePopoverMenus ( ) ;
1045+ }
10491046 }
10501047
10511048 function buildHelpMenu ( ) {
You can’t perform that action at this time.
0 commit comments