Skip to content

Form input tags cannot have id="nodeName" or id="nodeType" inside sidebarPanel() #4192

@jfunction

Description

@jfunction

I am on Shiny 1.10.0

If I create a downloadButton in an app it appears enabled. If I create a selectInput before the downloadButton it becomes disabled at startup.

See reprex.

System details

Browser Version:

Microsoft Edge
Version 133.0.3065.82 (Official build) (64-bit)

Output of sessionInfo():

R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)

Matrix products: default


locale:
[1] LC_COLLATE=English_South Africa.utf8  LC_CTYPE=English_South Africa.utf8    LC_MONETARY=English_South Africa.utf8 LC_NUMERIC=C                         
[5] LC_TIME=English_South Africa.utf8    

time zone: Africa/Johannesburg
tzcode source: internal

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

other attached packages:
[1] shiny_1.10.0

loaded via a namespace (and not attached):
 [1] jsonlite_1.8.9    compiler_4.4.0    promises_1.3.2    reprex_2.1.0      Rcpp_1.0.14       clipr_0.8.0       callr_3.7.6       later_1.4.1      
 [9] jquerylib_0.1.4   yaml_2.3.8        fastmap_1.2.0     mime_0.12         R6_2.5.1          knitr_1.47        tibble_3.2.1      R.cache_0.16.0   
[17] pillar_1.9.0      bslib_0.9.0       R.utils_2.12.3    rlang_1.1.4       utf8_1.2.4        cachem_1.1.0      httpuv_1.6.15     xfun_0.45        
[25] fs_1.6.5          sass_0.4.9        memoise_2.0.1     cli_3.6.3         withr_3.0.2       magrittr_2.0.3    ps_1.7.6          processx_3.8.4   
[33] digest_0.6.36     rstudioapi_0.17.1 fontawesome_0.5.3 xtable_1.8-4      lifecycle_1.0.4   R.methodsS3_1.8.2 R.oo_1.26.0       vctrs_0.6.5      
[41] evaluate_0.24.0   glue_1.7.0        styler_1.10.3     fansi_1.0.6       rmarkdown_2.27    purrr_1.0.2       pkgconfig_2.0.3   tools_4.4.0      
[49] htmltools_0.5.8.1

Steps to reproduce the problem

library(shiny)

ui <- fluidPage(
  selectInput("x", "X",
              choices = c("A", "B")),
  downloadButton(outputId = "y", label = "Y"),
)

server <- function(input, output, session) {
}

shinyApp(ui, server)
Shiny applications not supported in static R Markdown documents

Created on 2025-02-25 with reprex v2.1.0

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