Skip to content

Commit

Permalink
radio & check buttons update: disabled choices must be character
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed May 15, 2021
1 parent 66a507b commit e8e7fb9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: shinyWidgets
Title: Custom Inputs Widgets for Shiny
Version: 0.6.0.9000
Version: 0.6.0.9100
Authors@R: c(
person("Victor", "Perrier", email = "victor.perrier@dreamrs.fr", role = c("aut", "cre", "cph")),
person("Fanny", "Meyer", role = "aut"),
Expand Down
2 changes: 2 additions & 0 deletions R/input-checkboxgroupbuttons.R
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ updateCheckboxGroupButtons <- function(session,
args <- normalizeChoicesArgs(choices, choiceNames, choiceValues, mustExist = FALSE)
if (!is.null(selected))
selected <- as.character(selected)
if (!is.null(disabledChoices))
disabledChoices <- as.character(disabledChoices)
options <- if (!is.null(args$choiceNames)) {
as.character(tagList(generateCBGB(
session$ns(inputId),
Expand Down
2 changes: 2 additions & 0 deletions R/input-radiogroupbuttons.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ updateRadioGroupButtons <- function(session,
if (is.null(selected) && !is.null(args$choiceValues)) {
selected <- args$choiceValues[[1]]
}
if (!is.null(disabledChoices))
disabledChoices <- as.character(disabledChoices)
options <- if (!is.null(args$choiceValues)) {
as.character(tagList(
generateRGB(
Expand Down

0 comments on commit e8e7fb9

Please sign in to comment.