Skip to content

Commit

Permalink
add force = TRUE for jsonlite::toJSON conversion primarily to han…
Browse files Browse the repository at this point in the history
…dle `shiny.tag` as prop #67
  • Loading branch information
timelyportfolio committed Dec 2, 2023
1 parent bd72b36 commit 313adfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/reacttools.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ createReactShinyInput <- function(inputId,
container(id = inputId, class = class),
htmltools::tags$script(id = sprintf("%s_value", inputId),
type = "application/json",
jsonlite::toJSON(value, auto_unbox = TRUE, null = "null")),
jsonlite::toJSON(value, auto_unbox = TRUE, null = "null", force = TRUE)),
htmltools::tags$script(id = sprintf("%s_configuration", inputId),
type = "application/json",
jsonlite::toJSON(configuration, auto_unbox = TRUE, null = "null")),
jsonlite::toJSON(configuration, auto_unbox = TRUE, null = "null", force = TRUE)),
dependencies
)
}

0 comments on commit 313adfc

Please sign in to comment.