Skip to content

Commit da8986a

Browse files
committed
inputs: re-order html deps and include corejs for shinytest compat
1 parent 3e4563b commit da8986a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/reacttools.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,16 @@ createReactShinyInput <- function(inputId,
133133
if(length(dependencies) < 1) stop("Must include at least one HTML dependency.")
134134
value <- shiny::restoreInput(id = inputId, default = default)
135135
htmltools::tagList(
136+
html_dependency_corejs(),
137+
html_dependency_react(),
138+
html_dependency_reacttools(),
136139
container(id = inputId, class = class),
137140
htmltools::tags$script(id = sprintf("%s_value", inputId),
138141
type = "application/json",
139142
jsonlite::toJSON(value, auto_unbox = TRUE)),
140143
htmltools::tags$script(id = sprintf("%s_configuration", inputId),
141144
type = "application/json",
142145
jsonlite::toJSON(configuration, auto_unbox = TRUE)),
143-
html_dependency_react(),
144-
html_dependency_reacttools(),
145146
dependencies
146147
)
147148
}

0 commit comments

Comments
 (0)