Skip to content

Touch-dragged tooltips do not close on clicks/taps outside the chart #12126

@fgagnon45

Description

@fgagnon45

Expected behavior

Any clicks/taps outside the chart should close the active tooltip.

Current behavior

The tooltip remains visible even after tapping outside the chart.

Reproducible sample

https://www.chartjs.org/docs/latest/samples/bar/stacked.html

Optional extra steps/info to reproduce

This can be reproduced on some of the official samples, e.g., “Stacked Bar Chart”:

  1. Start a touch drag on one of the columns.
  2. Drag to another column.
  3. Stop the touch drag on this column.
  4. Tap ouside of the chart.

This issue only occurs on touch devices, but can also be reproduced on desktop using DevTools’ “device mode” to simulate touch events.

Possible solution

No response

Context

No response

chart.js version

4.5.0

Browser name and version

Brave v1.82.172

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions