Skip to content

javascript onclick event not triggering when clicking on plotly marker #1043

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

Closed
shosaco opened this issue Jun 8, 2017 · 3 comments
Closed

Comments

@shosaco
Copy link

shosaco commented Jun 8, 2017

The issue is described here and on Stackoverflow.

The initial issue is that we cannot fire an event after clicking on the same plotly marker again (because event_data("plotly_click") naturally doesn't change. We are trying to work around this by firing javascript onclick events, but Plotly is blocking those when clicking on a plotly marker. Is there a way to overcome this?

Thanks in advance and best regards!

@shosaco
Copy link
Author

shosaco commented Jun 14, 2017

In the meantime I found a workaround by hard resetting the source of event_data("plotly_click") with shinyjs (described in the answer here).

@cpsievert
Copy link
Collaborator

This is now possible with event_data("plotly_click", priority = "event")

@shosaco
Copy link
Author

shosaco commented Feb 18, 2019

Thanks a lot!!

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

2 participants