Browse Source

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 years ago
parent
commit
8b5aefae26
1 changed files with 3 additions and 0 deletions
  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]');