BarChart: make sure tooltip closes when user presses E (#34884) (#34941)

(cherry picked from commit dfc466052d)

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-31 09:01:37 +02:00
committed by GitHub
co-authored by Oscar Kilhed
parent bee8b0a9dd
commit bfb3e90750
@@ -56,6 +56,7 @@ export const TooltipPlugin: React.FC<TooltipPluginProps> = ({
}
return () => {
setCoords(null);
if (plotCtx && plotCtx.plot) {
plotCtx.plot.over.removeEventListener('mouseleave', plotMouseLeave);
}