GithubHelp home page GithubHelp logo

Comments (7)

cristianiniguez avatar cristianiniguez commented on July 20, 2024 1

@hubertkozik just as an update, I put the workaround in my code now and is working. I don't see any errors now. Thanks

from highcharts.

hubertkozik avatar hubertkozik commented on July 20, 2024

Hi @cristianiniguez!
Your issues are similar to the one described here: #20572 It is already fixed on the master. You can use the workaround in your project from this comment. Can you check it on your side?

from highcharts.

cristianiniguez avatar cristianiniguez commented on July 20, 2024

Hi @hubertkozik
I added the following to the main.tsx file but I'm still getting the error

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

This is the same workaround mentioned in the other issue's comment.

from highcharts.

hubertkozik avatar hubertkozik commented on July 20, 2024

@cristianiniguez Can you reproduce the issue in the online editor and send me a link to the demo with a code? I would like to check some things for you :)

from highcharts.

cristianiniguez avatar cristianiniguez commented on July 20, 2024

@hubertkozik I couldn't manage to create a demo on jsfiddle. However there is this one in codesandbox. Hope it helps https://codesandbox.io/p/sandbox/react-highcharts-test-9d8kk3

from highcharts.

hubertkozik avatar hubertkozik commented on July 20, 2024

Thank you for the demo. I've reproduced the issue in vanilla JS: https://jsfiddle.net/BlackLabel/d1s2jvhw/ If you hover over any points, then click on the chart to fire chart.click event to destroy the chart - the error comes up.

It's a regression, it was working correctly in Highcharts v10.3.3.

I've prepared a workaround for that issue. If you want to use it in your project, simply copy-paste the IIFE function with the plugin from the demo below.

Live demo with a workaround: https://jsfiddle.net/BlackLabel/fb1yqanz/

Internal note:
Bisected to: 6e1d9b9

from highcharts.

hubertkozik avatar hubertkozik commented on July 20, 2024

This issue has been fixed in c5db31e (#20994) Closing as completed.

from highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.