Browse Source

fix: make it easier to close search by clicking outside result container, fixes #8848

Torkel Ödegaard 8 years ago
parent
commit
e9989cb690
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/components/grafana_app.ts

+ 1 - 1
public/app/core/components/grafana_app.ts

@@ -192,7 +192,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv) {
 
         // hide search
         if (body.find('.search-container').length > 0) {
-          if (target.parents('.search-container').length === 0) {
+          if (target.parents('.search-results-container').length === 0) {
             scope.$apply(function() {
               scope.appEvent('hide-dash-search');
             });