From bfb3e9075073b2bc1ccaf1ed6cdfab3ed2d3767f Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 31 May 2021 03:01:37 -0400 Subject: [PATCH] BarChart: make sure tooltip closes when user presses E (#34884) (#34941) (cherry picked from commit dfc466052d9c6fafbebaaf6691bab0caa1287e17) Co-authored-by: Oscar Kilhed --- .../grafana-ui/src/components/uPlot/plugins/TooltipPlugin.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grafana-ui/src/components/uPlot/plugins/TooltipPlugin.tsx b/packages/grafana-ui/src/components/uPlot/plugins/TooltipPlugin.tsx index 1408d19018e..ce4c8ce6736 100644 --- a/packages/grafana-ui/src/components/uPlot/plugins/TooltipPlugin.tsx +++ b/packages/grafana-ui/src/components/uPlot/plugins/TooltipPlugin.tsx @@ -56,6 +56,7 @@ export const TooltipPlugin: React.FC = ({ } return () => { + setCoords(null); if (plotCtx && plotCtx.plot) { plotCtx.plot.over.removeEventListener('mouseleave', plotMouseLeave); }