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)andOscar Kilhed authored and GitHub committed 2021-05-31 09:01:37 +02:00
1 parent bee8b0a9dd
commit bfb3e90750
1 file changed
+1
@@ -56,6 +56,7 @@ export const TooltipPlugin: React.FC<TooltipPluginProps> = ({
}
return () => {
setCoords(null);
if (plotCtx && plotCtx.plot) {
plotCtx.plot.over.removeEventListener('mouseleave', plotMouseLeave);
}