BarChart: Clear tooltip when cursor exits bar (#60617)

This commit is contained in:
Victor Marin 2022-12-23 21:00:52 +02:00 committed by GitHub
parent b439fd56d8
commit 9bd6e471e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ export const addTooltipSupport = ({
setFocusedSeriesIdx,
setFocusedPointIdx,
(clear) => {
if (clear && isActive) {
if (clear) {
setCoords(null);
return;
}