Charts render an empty tooltip

When hovering quickly and repeatedly over a chart, it can happen that an empty tooltip is displayed until the chart gets hovered again.

Examples

Line Chart Sparkline Chart Area chart
Screen_Shot_2019-11-26_at_9.18.26_am Screen_Shot_2019-11-27_at_5.22.23_pm Screen_Shot_2019-11-27_at_5.24.48_pm

DOM when the issue happens

Screen_Shot_2019-11-26_at_9.32.38_am

(The tooltip component within the chart is hidden but the DOM element that gets added by <gl-tooltip> is still there)

Steps to reproduce

  1. Load a chart that renders tooltips (e.g.: sparkline chart)
  2. Hover in and out of the chart quickly and repeatedly
Edited by David Pisek