mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 18:13:32 -06:00
fix: make it easier to close search by clicking outside result container, fixes #8848
This commit is contained in:
parent
0fcc87010a
commit
e9989cb690
@ -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');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user