Skip to content

Commit 992dfbd

Browse files
Merge pull request #23 from react-R/pass-null
pass NULL as null for value and configuration
2 parents f5924fe + d671a7e commit 992dfbd

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)),
148+
jsonlite::toJSON(value, auto_unbox = TRUE, null = "null")),
149149
htmltools::tags$script(id = sprintf("%s_configuration", inputId),
150150
type = "application/json",
151-
jsonlite::toJSON(configuration, auto_unbox = TRUE)),
151+
jsonlite::toJSON(configuration, auto_unbox = TRUE, null = "null")),
152152
dependencies
153153
)
154154
}

0 commit comments

Comments
 (0)