Skip to content

Commit

Permalink
picker choicesOpt : accept tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Nov 17, 2019
1 parent 6b0034c commit 68a73f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/input-selectpicker.R
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ pickerSelectOptions <- function(choices, selected = NULL, choicesOpt = NULL, max
`data-icon` = choicesOpt$icon[i],
`data-subtext` = choicesOpt$subtext[i],
`data-content` = choicesOpt$content[i],
`data-tokens` = choicesOpt$tokens[i],
disabled = if (!is.null(choicesOpt$disabled[i]) && choicesOpt$disabled[i]) "disabled",
selected = if (choice %in% selected) "selected" else NULL
)
Expand Down

0 comments on commit 68a73f6

Please sign in to comment.