Black Lives Matter. Please consider donating to Black Girls Code today.

Shiny: no event data from plotly_relayout

shiny 1.0.2
plotly 4.7.0

I’m trying to get event_data("plotly_relayout", source = "...") to work, as seen in this example: https://plot.ly/r/shinyapp-plotly-events/

I get nothing in response to zoom, “reset axes” or manipulating range slider. (I also tried removing the range slider, in case it was causing the problem, but nothing changed.)

I do get event data for plotly_hover and plotly_click, so I’m quite certain there’s nothing wrong with my code.

Issue #1039 fixed in 4.7.1: https://github.com/ropensci/plotly/blob/master/NEWS.md