浏览代码

Merge pull request #13417 from British-Steel/Remove-dropdown-menu-open-class-when-out-of-focus

Remove .dropdown-menu-open on body click fixes #13409
Torkel Ödegaard 7 年之前
父节点
当前提交
8b5aefae26
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      public/app/core/components/grafana_app.ts

+ 3 - 0
public/app/core/components/grafana_app.ts

@@ -245,6 +245,9 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
           return;
         }
 
+        // ensure dropdown menu doesn't impact on z-index
+        body.find('.dropdown-menu-open').removeClass('dropdown-menu-open');
+
         // for stuff that animates, slides out etc, clicking it needs to
         // hide it right away
         const clickAutoHide = target.closest('[data-click-hide]');