Skip to content

matrixInputs lose their bookmarked values on restoration #42

@JohnADawson

Description

@JohnADawson

When an application is bookmarked and restored the matrixInputs lose their values.

An example follows.

ui <- function(request) {
  shiny::fluidPage(
    shinyMatrix::matrixInput("my_matrix", "Matrix"),
    shiny::verbatimTextOutput("my_text"),
    shiny::bookmarkButton()
  )
}

server <- function(input, output, session) {
  output$my_text <- shiny::renderPrint(input$my_matrix)
}

shiny::shinyApp(ui, server, enableBookmarking = "url")

Run the app.
Image
Enter "7".
Image
Click "Bookmark...".
Image
Restore the application.
Image
The matrixInput is not seeded with "7", as it ought to be.

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