Skip to content

Highlighter shown with hidden tooltip #478

@markov00

Description

@markov00

Describe the bug
If you specify the tooltip type as None, the highlighter on the line and bars still shown the highlighted elements.

To Reproduce
Steps to reproduce the behavior:

  1. Paste this snippet on the playground:
<Chart>
  <Settings tooltip={{ type: TooltipType.None }} />
  <LineSeries
    id="lines"
    xAccessor={0}
    yAccessors={[1]}
    data={KIBANA_METRICS.metrics.kibana_os_load[0].data}
  />
</Chart>
  1. Mouse over one point
  2. An highlight circle appear on every point when mouse over

Expected behavior
If tooltip type None the highlighter should not be rendered

Screenshots
70072008-18c22d80-15ee-11ea-87dc-7ad218d26601
70072071-342d3880-15ee-11ea-8445-59d6dffc000c

Version (please complete the following information):

  • Browser: all
  • Elastic Charts: 15.0.1

Additional context
regression found during Kibana dependency update elastic/kibana#50513
Catch during manual testing

Errors in browser console
n/a

Kibana Cross Issues
elastic/kibana#50513

Checklist

  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions