Skip to content

Commit 313adfc

Browse files
add force = TRUE for jsonlite::toJSON conversion primarily to handle shiny.tag as prop #67
1 parent bd72b36 commit 313adfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/reacttools.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ createReactShinyInput <- function(inputId,
145145
container(id = inputId, class = class),
146146
htmltools::tags$script(id = sprintf("%s_value", inputId),
147147
type = "application/json",
148-
jsonlite::toJSON(value, auto_unbox = TRUE, null = "null")),
148+
jsonlite::toJSON(value, auto_unbox = TRUE, null = "null", force = TRUE)),
149149
htmltools::tags$script(id = sprintf("%s_configuration", inputId),
150150
type = "application/json",
151-
jsonlite::toJSON(configuration, auto_unbox = TRUE, null = "null")),
151+
jsonlite::toJSON(configuration, auto_unbox = TRUE, null = "null", force = TRUE)),
152152
dependencies
153153
)
154154
}

0 commit comments

Comments
 (0)