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
Similar to the issue here, updateAirDateInput does not fully overwrite value in an airDatepickerInput. Instead, if a date has been selected by an old call to updateAirDateInput, it will remain selected even if it is not included in the value in a new call to updateAirDateInput. The problem exists in both versions 0.8.6 and 0.8.6.9100.
Repex
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
airDatepickerInput("date_input", "Pick a date", multiple = TRUE),
actionButton("select_new_date", "Select new date")
)
# Define server logic required to draw a histogram
server <- function(input, output, session) {
click_count <- reactiveValues(select_new_date = 0)
observeEvent(input$select_new_date, {
updateAirDateInput(inputId = "date_input", value = Sys.Date() + click_count$select_new_date) # After each time clicking "select_new_date", only one date should be selected, and the previously selected dates should be de-selected. But this is not the case. Previously selected dates remain selected.
click_count$select_new_date <- click_count$select_new_date + 1
})
}
The text was updated successfully, but these errors were encountered:
Similar to the issue here,
updateAirDateInput
does not fully overwritevalue
in anairDatepickerInput
. Instead, if a date has been selected by an old call toupdateAirDateInput
, it will remain selected even if it is not included in thevalue
in a new call toupdateAirDateInput
. The problem exists in both versions0.8.6
and0.8.6.9100
.Repex
The text was updated successfully, but these errors were encountered: