Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@cpsievert

Description

@cpsievert
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.