Skip to content

Commit 1e689ef

Browse files
committed
emit defaultValues as a string, addresses #1191
1 parent 2b5a82d commit 1e689ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ supply_highlight_attrs <- function(p) {
295295
p <- htmlwidgets::onRender(
296296
p, sprintf(
297297
"function(el, x) { crosstalk.group('%s').var('selection').set(%s) }",
298-
i, jsonlite::toJSON(vals, auto_unbox = FALSE)
298+
i, jsonlite::toJSON(as.character(vals), auto_unbox = FALSE)
299299
)
300300
)
301301
}

0 commit comments

Comments
 (0)