You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear whether NULL should or should not be a valid value for slider inputs (rstudio/shiny#2909) but currently shiny allows it, and reset doesn't deal with it nicely.
library(shiny)
ui <- fluidPage(
shinyjs::useShinyjs(),
sliderInput("test", "test", min = 5, max = 10, value = NULL),
actionButton("reset", "reset")
)
server <- function(input, output, session) {
observeEvent(input$reset, {
shinyjs::reset("test")
})
}
shinyApp(ui, server)
The text was updated successfully, but these errors were encountered:
It's not clear whether
NULL
should or should not be a valid value for slider inputs (rstudio/shiny#2909) but currently shiny allows it, and reset doesn't deal with it nicely.The text was updated successfully, but these errors were encountered: