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

awesomeCheckboxGroup errors when colon in choices #543

Closed
KapLDN opened this issue Oct 28, 2022 · 1 comment
Closed

awesomeCheckboxGroup errors when colon in choices #543

KapLDN opened this issue Oct 28, 2022 · 1 comment

Comments

@KapLDN
Copy link

KapLDN commented Oct 28, 2022

Hey there,

I have encountered an issue when using awesomeCheckboxGroup. When the choices have a colon (':'), my shiny app crashes. Here is a minimal example comparing prettyCheckboxGroup and awesomeCheckboxGroup. When awesomeCheckboxGroup is commented out, the application runs fine:

library(shiny)
library(shinyWidgets)
ui <- fluidPage(
  prettyCheckboxGroup("prettycheckbox",
                      label = "Pretty",
                      choices = c("A : 1", "A : 2")),
  awesomeCheckboxGroup("awesomecheckbox",
                       label = "Awesome",
                       choices = c("A : 1", "A : 2")),
  textOutput("pretty_out"),
  textOutput("awesome_out")
)
server <- function(input, output, session) {
  output$pretty_out <- renderText({input$prettycheckbox})
  output$awesome_out <- renderText({input$awesomecheckbox})
}
shinyApp(ui, server)
Listening on http://127.0.0.1:5139
Warning: Error in <Anonymous>: No handler registered for type awesomecheckboxA : 1
  [No stack trace available]
Error in (function (name, val, shinysession)  : 
  No handler registered for type awesomecheckboxA : 1

Happy to provide session info if required.

Many thanks!

@pvictor pvictor closed this as completed in ba2545f Nov 2, 2022
@pvictor
Copy link
Member

pvictor commented Nov 2, 2022

Thanks for reporting the issue. It's fixed in dev version, please re-install from GitHub.

Victor

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

2 participants