fix: search bug where search was hidden when you click starred or tags filter links, fixes #8981

This commit is contained in:
Torkel Ödegaard 2017-08-04 14:01:09 +02:00
parent 1372d2e517
commit c0b0a54a8f

View File

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