From 9bd6e471e436fed37a908e5118593d515b134781 Mon Sep 17 00:00:00 2001 From: Victor Marin <36818606+mdvictor@users.noreply.github.com> Date: Fri, 23 Dec 2022 21:00:52 +0200 Subject: [PATCH] BarChart: Clear tooltip when cursor exits bar (#60617) --- .../grafana-ui/src/components/uPlot/config/addTooltipSupport.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grafana-ui/src/components/uPlot/config/addTooltipSupport.ts b/packages/grafana-ui/src/components/uPlot/config/addTooltipSupport.ts index 9779f9fe02d..4932cb1ab70 100644 --- a/packages/grafana-ui/src/components/uPlot/config/addTooltipSupport.ts +++ b/packages/grafana-ui/src/components/uPlot/config/addTooltipSupport.ts @@ -106,7 +106,7 @@ export const addTooltipSupport = ({ setFocusedSeriesIdx, setFocusedPointIdx, (clear) => { - if (clear && isActive) { + if (clear) { setCoords(null); return; }