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

This commit is contained in:
Torkel Ödegaard 2017-07-31 22:33:22 +02:00
parent 0fcc87010a
commit e9989cb690

View File

@ -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');
});