mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
explicitly set number to null instead of implicitly for better documentation
This commit is contained in:
@@ -89,7 +89,7 @@ sliderInput <- function(inputId, label, min, max, value, step = NULL,
|
||||
dataType <- getSliderType(min, max, value)
|
||||
|
||||
if (is.null(timeFormat)) {
|
||||
timeFormat <- switch(dataType, date = "%F", datetime = "%F %T")
|
||||
timeFormat <- switch(dataType, date = "%F", datetime = "%F %T", number = NULL)
|
||||
}
|
||||
|
||||
# Restore bookmarked values here, after doing the type checking, because the
|
||||
|
||||
@@ -431,7 +431,7 @@ updateSliderInput <- function(session, inputId, label = NULL, value = NULL,
|
||||
dataType <- getSliderType(min, max, value)
|
||||
|
||||
if (is.null(timeFormat)) {
|
||||
timeFormat <- switch(dataType, date = "%F", datetime = "%F %T")
|
||||
timeFormat <- switch(dataType, date = "%F", datetime = "%F %T", number = NULL)
|
||||
}
|
||||
|
||||
if (dataType == "date" || dataType == "datetime") {
|
||||
|
||||
Reference in New Issue
Block a user