fix: make it easier to close search by clicking outside result container, fixes #8848
This commit is contained in:
1 parent
0fcc87010a
commit
e9989cb690
1 file changed
+1
-1
@@ -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');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user