Skip to content

Commit

Permalink
fixed bug unique html choice
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Oct 21, 2022
1 parent d83a03a commit d2d96c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: shinySelect
Title: A Wrapper of the 'react-select' Library
Version: 1.1.0
Version: 1.2.0
Authors@R: c(
person("Stéphane", "Laurent", , "[email protected]", role = c("aut", "cre")),
person("Jed", "Watson", role = "cph",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# shinySelect 1.2.0

There was a bug when there was only one HTML choice in the widget.


# shinySelect 1.1.0

In the previous version, in order to update the selected values with
Expand Down
2 changes: 1 addition & 1 deletion R/selectControl.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ HTMLgroupedChoices <- function(groups, labels, values){
#names(labels) <- as.character(seq_along(labels))
out <- values
attr(out, "htmlgroups") <- groups
attr(out, "htmllabels") <- newlabels
attr(out, "htmllabels") <- lapply(newlabels, as.list)
out
}

Expand Down

0 comments on commit d2d96c0

Please sign in to comment.