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

Trying to destroy chart second time gives TypeError: this.zoomPanSelection is null #202

Closed
mestaritonttu opened this issue Nov 19, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@mestaritonttu
Copy link
Contributor

Codepen

https://codepen.io/anon/pen/aQLMzz

Explanation

Click twice the button that says "Click to recreate chart". On the second click you will get in the console TypeError: this.zoomPanSelection is null.

It is hitting the this.zoomPanSelection.destroy() function in this apexcharts.js code block:

key: 'clear',
value: function clear() {
    this.zoomPanSelection.destroy();
    if (this.toolbar) {
    this.toolbar.destroy();
    }
@junedchhipa junedchhipa added the bug Something isn't working label Nov 19, 2018
@junedchhipa
Copy link
Contributor

@mestaritonttu Thanks for reporting, I confirm this bug.
Will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants