diff --git a/DESCRIPTION b/DESCRIPTION index 8ebc80a37b..1c8b0b25dc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -42,7 +42,7 @@ Imports: vctrs, tibble, lazyeval (>= 0.2.0), - rlang, + rlang (>= 0.4.10), crosstalk, purrr, data.table, diff --git a/R/utils.R b/R/utils.R index 46a0e02f0c..dd0d182283 100644 --- a/R/utils.R +++ b/R/utils.R @@ -379,7 +379,9 @@ supply_highlight_attrs <- function(p) { # include one selectize dropdown per "valid" SharedData layer if (isTRUE(p$x$highlight$selectize)) { - p$x$selectize[[i]] <- list( + # Hash i (the crosstalk group id) so that it can be used + # as an HTML id client-side (i.e., key shouldn't contain spaces) + p$x$selectize[[rlang::hash(i)]] <- list( items = data.frame(value = k, label = k), group = i ) }