Skip to content

Commit 8422d2b

Browse files
authored
hide the previous tooltip in case of null value (#2790)
1 parent 553830b commit 8422d2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tooltip.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ ChartInternal.prototype.showTooltip = function(selectedData, element) {
270270
positionFunction =
271271
config.tooltip_position || ChartInternal.prototype.tooltipPosition
272272
if (dataToShow.length === 0 || !config.tooltip_show) {
273+
$$.hideTooltip();
273274
return
274275
}
275276
$$.tooltip

0 commit comments

Comments
 (0)