Skip to content

radioGroupButtons() from shinyWidgets broken in Shiny 1.11.0 – “Unexpected input value mode: 'undefined'” error #4244

@kathrinramsmeier

Description

@kathrinramsmeier

After updating to Shiny 1.11.0, radioGroupButtons() from the shinyWidgets package no longer works correctly. It was working as expected with Shiny 1.10.0.

When launching the app, I receive the following JavaScript console error:

inputValidateDecorator.ts:16 Uncaught Error: Unexpected input value mode: 'undefined'

This occurs even with minimal code, shown below.

Minimal reproducible example:

library(shiny)
library(shinyWidgets)

ui <- fluidPage(
  h3("Test radioGroupButtons"),
  radioGroupButtons(
    inputId = "choice",
    label = "Choose one:",
    choices = c("Option 1", "Option 2", "Option 3"),
    justified = TRUE,
    status = "primary"
  ),
  verbatimTextOutput("selected")
)

server <- function(input, output, session) {
  output$selected <- renderPrint({
    input$choice
  })
}

shinyApp(ui, server)

Environment:

  • shiny version: 1.11.0
  • shinyWidgets version: 0.9.0
  • Browser: Chrome 135.0.7049.97
  • OS: Linux Ubuntu 20.04.6 LTS

Notes:

  • Downgrading to Shiny 1.10.0 resolves the issue.
  • Possibly related to recent changes regarding input value validation or submit button handling (#4209).
  • May also be related to an open issue in shinyWidgets: dreamRs/shinyWidgets#741.

Would appreciate any help or clarification on this. Thank you for your work on Shiny!

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