Skip to content

airDatepickerInput update_on=close not working after update to 0.9.1 #766

@toomish

Description

@toomish

update_on "close" must send selected value or values to server when calender is closed. But after update to 0.9.1 selected value is sent on change.

example:

library(shinyWidgets)
library(shiny)

ui <- fluidPage(fluidRow(
    column(6,
        airDatepickerInput(
            "x",
            addon = "none",
            update_on = "close",
            autoClose = TRUE,
            range = TRUE
        )
    ),
    column(6,
        verbatimTextOutput("y")
    )
))

server <- function(input, output) {
    output$y <- renderPrint(input$x)
}

sessionInfo()

shinyApp(ui, server)

bug with 0.9.1, session info:

R version 4.6.0 (2026-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Arch Linux

Matrix products: default
BLAS:   /usr/lib/libblas.so.3.12.0 
LAPACK: /usr/lib/liblapack.so.3.12.0  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=C                  LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Moscow
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.13.0       shinyWidgets_0.9.1

loaded via a namespace (and not attached):
 [1] digest_0.6.39   later_1.4.8     R6_2.6.1        httpuv_1.6.17  
 [5] fastmap_1.2.0   magrittr_2.0.5  cachem_1.1.0    htmltools_0.5.9
 [9] lifecycle_1.0.5 promises_1.5.0  cli_3.6.6       xtable_1.8-8   
[13] sass_0.4.10     jquerylib_0.1.4 compiler_4.6.0  tools_4.6.0    
[17] mime_0.13       bslib_0.10.0    Rcpp_1.1.1-1.1  otel_0.2.0     
[21] rlang_1.2.0     jsonlite_2.0.0 
0.9.1.mp4

normal with 0.9.0, session info:

R version 4.6.0 (2026-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Arch Linux

Matrix products: default
BLAS:   /usr/lib/libblas.so.3.12.0 
LAPACK: /usr/lib/liblapack.so.3.12.0  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=C                  LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: Europe/Moscow
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.13.0       shinyWidgets_0.9.0

loaded via a namespace (and not attached):
 [1] digest_0.6.39   later_1.4.8     R6_2.6.1        httpuv_1.6.17  
 [5] fastmap_1.2.0   magrittr_2.0.5  cachem_1.1.0    htmltools_0.5.9
 [9] lifecycle_1.0.5 promises_1.5.0  cli_3.6.6       xtable_1.8-8   
[13] sass_0.4.10     jquerylib_0.1.4 compiler_4.6.0  tools_4.6.0    
[17] mime_0.13       bslib_0.10.0    Rcpp_1.1.1-1.1  otel_0.2.0     
[21] rlang_1.2.0     jsonlite_2.0.0 
0.9.0.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions