Open dustinstender opened 1 year ago
I looked a bit into the codebase and it seems to me that according to this test this behavior is intentional.
Is there a specific reason for this?
Thanks @dustinstender - the TODO in that test makes it look like we just never completed this behavior for pie charts, so we removed the broken behavior, but we would prefer the feature to be completed. @archmoj is that how you understand this too?
Thanks for getting back @alexcjohnson. I noticed here that this does seem to be the case.
Reproduction of bug - https://codepen.io/dstender/pen/LYXEGYZ
Simple code example:
I discovered this issue while using the react-plotly.js library. I wanted to handle the left and right clicking of a slice of a pie chart in the same manner. However, I noticed that the
onClick
event doesn't catch a right click. This is not the case for other charts (Line, Bar, etc...).It seems to me that this is related to
plotly.js
rather thanreact-plotly.js
but of course I could be wrong. If this is a legit bug are there any workarounds?