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

Plotly.restyle breaks onClick handlers #330

Open
sterlingwalsh opened this issue Oct 26, 2023 · 0 comments
Open

Plotly.restyle breaks onClick handlers #330

sterlingwalsh opened this issue Oct 26, 2023 · 0 comments

Comments

@sterlingwalsh
Copy link

Issue: After calling Plotly.restyle on a rendered chart, onClick callback fail to be called.

Reproduction: https://codesandbox.io/s/youthful-ganguly-kt5pq7?file=/src/chart.tsx Using this example, you are able to click the line points or the bar and see the selection updated at the bottom. this works indefinitely, and as expected. By clicking the restyle button, the bars will change color from orange to blue. After this, click events cease to work on both the bar and the line plots.

Base Plotly: this DOES work as expected in base plotly using the same data and same reproduction steps https://codepen.io/swalsh81/pen/gOqaxeP

Expected functionality: Click events should continue to work after a Plotly.restyle event is called and function like the base plotly does as demonstrated

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

No branches or pull requests

1 participant