Skip to content

Commit 5c77075

Browse files
committed
Revert "go back to using ggplotly() to prepare the widget for shiny rendering"
This reverts commit a0fa68f.
1 parent 6f1925a commit 5c77075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/shiny.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ renderPlotly <- function(expr, env = parent.frame(), quoted = FALSE) {
6868
prepareWidget <- function(x) {
6969
if (promises::is.promising(x)) {
7070
promises::then(
71-
promises::then(x, ggplotly),
71+
promises::then(x, plotly_build),
7272
register_plot_events
7373
)
7474
} else {
75-
register_plot_events(ggplotly(x))
75+
register_plot_events(plotly_build(x))
7676
}
7777
}
7878

0 commit comments

Comments
 (0)