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

Chart destroy after point hover - Cannot destructure property 'chart' of 'series' #20572

Closed
ppotaczek opened this issue Feb 1, 2024 · 3 comments · Fixed by #20735
Closed

Comments

@ppotaczek
Copy link
Contributor

ppotaczek commented Feb 1, 2024

Expected behaviour

Works as expected in Highcharts v11.2.0: https://jsfiddle.net/BlackLabel/xnukpa2d/

Actual behaviour

Error: Uncaught TypeError: Cannot destructure property 'chart' of 'series' as it is undefined.

Live demo with steps to reproduce

  1. Open jsfiddle: https://jsfiddle.net/BlackLabel/bqcz3nw0/
  2. Check the browser console

Product version

Highcharts + Highcharts More v11.3.0

Affected browser(s)

All

Originally reported on the highcharts-rect repository: highcharts/highcharts-react#455

@hubertkozik
Copy link
Member

Another demo with reproduced issue: https://jsfiddle.net/BlackLabel/ghe9rnbx/

@hubertkozik
Copy link
Member

Internal note:
Bisected to: fa1cf6b

@hubertkozik
Copy link
Member

Workaround for that issue:
(function(H) { H.wrap(H.Point.prototype, 'pos', function (proceed) { if (!this.destroyed) { return proceed.apply(this, Array.prototype.slice.call(arguments, 1)); } }); })(Highcharts);

Below are some demos with applied workaround. If you want to use this workaround in your project with Highcharts v11.3.0 simply copy-paste the plugin (IIFE function).

Demos: https://jsfiddle.net/BlackLabel/wz9o15nt/
https://jsfiddle.net/BlackLabel/otqdz231/

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

Successfully merging a pull request may close this issue.

2 participants