Skip to content

Commit 5742aae

Browse files
committed
events that don't emit any data should always have event priority, fixes #1466
1 parent 5ffb9cb commit 5742aae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/shiny.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ event_data <- function(
154154
}
155155

156156
priority <- match.arg(priority)
157+
# events that don't emit any data should _always_ be treated with event priority
158+
if (event %in% c("plotly_doubleclick", "plotly_deselect", "plotly_afterplot")) {
159+
priority <- "event"
160+
}
161+
157162
if (priority == "event") {
158163
# Shiny.setInputValue() is always called with event priority
159164
# so simply return the parse input value

0 commit comments

Comments
 (0)