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

pull/34951/head
Oscar Kilhed 4 years ago committed by GitHub
parent badec6c6ad
commit dfc466052d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/grafana-ui/src/components/uPlot/plugins/TooltipPlugin.tsx

@ -56,6 +56,7 @@ export const TooltipPlugin: React.FC<TooltipPluginProps> = ({
} }
return () => { return () => {
setCoords(null);
if (plotCtx && plotCtx.plot) { if (plotCtx && plotCtx.plot) {
plotCtx.plot.over.removeEventListener('mouseleave', plotMouseLeave); plotCtx.plot.over.removeEventListener('mouseleave', plotMouseLeave);
} }

Loading…
Cancel
Save