Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading '_custom') #11365

Closed
charliepy opened this issue Jun 22, 2023 · 1 comment
Closed

Cannot read properties of undefined (reading '_custom') #11365

charliepy opened this issue Jun 22, 2023 · 1 comment

Comments

@charliepy
Copy link

Expected behavior

Chart does not freeze

Current behavior

This may be related to this ticket
#11315

Verison:
"chart.js": "^4.3.0",
"vue-chartjs": "^5.2.0",

image
image

Reproducible sample

https://github.com/chartjs/Chart.js/blob/v4.3.0/src/controllers/controller.doughnut.js#L314

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.3.0

Browser name and version

No response

Link to your project

No response

@joshkel
Copy link
Contributor

joshkel commented Nov 28, 2023

In case it helps, I believe the following steps can reproduce this:

  1. Position the cursor over the chart area, such that it causes a tooltip to be shown.
  2. Move the cursor out of the chart area, such that the tooltip remains visible.
  3. Cause the chart contents to be changed, such that the specific point referenced by the active tooltip element is no longer valid.
  4. Move the mouse again. This triggers an inChartArea = false event, so it reuses the previous, now invalid, active elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants