Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 'update_multiple_checkbox' not supporting choices with single quote #383

Open
u9090 opened this issue Jul 29, 2021 · 0 comments
Open
Assignees

Comments

@u9090
Copy link

u9090 commented Jul 29, 2021

Using the following example, the first box is not checked although it is mentioned in the selected param (maybe due to JSON conversion???)

if (interactive()) {
    library(shiny)
    library(shiny.semantic)
    
    ui <- function() {
        shinyUI(
            semanticPage(
                title = "Checkbox example",
                multiple_checkbox(input_id="checkboxes", label=NULL, choices="")
            )
        )
    }
    
    server <- shinyServer(function(session, input, output) {
        update_multiple_checkbox(session,
                                input_id  = "checkboxes",
                                choices  = c("A's", "B"),
                                selected = c("A's", "B"))
    })
    
    shinyApp(ui = ui(), server = server)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants