Skip to content

Commit

Permalink
updateSliderTextInput added default session, fix #693
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed May 23, 2024
1 parent cd0d228 commit c94c298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion R/input-sliderText.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ sliderTextInput <- function (inputId,
#'
#' shinyApp(ui = ui, server = server)
#' }
updateSliderTextInput <- function (session, inputId, label = NULL, selected = NULL, choices = NULL, from_fixed = NULL, to_fixed = NULL) {
updateSliderTextInput <- function (session = getDefaultReactiveDomain(),
inputId,
label = NULL,
selected = NULL,
choices = NULL,
from_fixed = NULL,
to_fixed = NULL) {
message <- dropNulls(list(
label = label, selected = selected, choices = choices,
from_fixed = from_fixed, to_fixed = to_fixed
Expand Down
2 changes: 1 addition & 1 deletion man/updateSliderTextInput.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c94c298

Please sign in to comment.