Skip to content

Statically rendered plotly in shiny doesn't have access to setInputValue #1624

Description

@cpsievert

A minimal example:

library(shiny)
ui <- fluidPage(plotly::plot_ly())
server <- function(input, output) {}
shinyApp(ui, server)

Results in the JS error: Shiny.setInputValue is not a function

In the long-term, shiny & htmlwidgets should do better to make the methods registered when initShiny executes available to htmlwidgets; but as a short-term fix, plotly should only call Shiny.setInputValue if it's available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions