mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Make 'restorable' opt-out instead of opt-in
This commit is contained in:
@@ -293,7 +293,7 @@ restoreInput <- function(id, default) {
|
||||
# when restoring a value.
|
||||
force(default)
|
||||
|
||||
if (!isTRUE(getShinyOption("restorable")) || !hasCurrentRestoreContext())
|
||||
if (identical(getShinyOption("restorable"), FALSE) || !hasCurrentRestoreContext())
|
||||
return(default)
|
||||
|
||||
oldInputs <- getCurrentRestoreContext()$input
|
||||
|
||||
Reference in New Issue
Block a user