Commit e9989cb6 by Torkel Ödegaard

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

parent 0fcc8701
......@@ -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');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment