Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtural select input dropdown appears behind slider inputs #701

Closed
wish1832 opened this issue Jul 24, 2024 · 2 comments
Closed

Virtural select input dropdown appears behind slider inputs #701

wish1832 opened this issue Jul 24, 2024 · 2 comments

Comments

@wish1832
Copy link

Hello,

When I place a virturalSelectInput widget above a shiny::sliderInput, the slider appears in front of the dropdown menu of the virtual select input.

Below is a screenshot of the issue, and a reprex that generates it locally:

Screenshot 2024-07-24 at 10 28 16 AM
library(shiny)
library(shinyWidgets)

ui <- fluidPage(
  shinyWidgets::virtualSelectInput(
      inputId = "virtural_select",
      label = "virturalSelectInput",
      choices = c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J"), 
      selected = character(0)
      ),
    
   shiny::sliderInput(
     inputId = "slider",
     label = "SliderInput",
     min = 0,
     max = 1,
     value = c(0,1)
     )
)

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

shinyApp(ui, server)

I have also included the result of devtools::sessionInfo(). Thanks!

─ Session info ──────────────────────────────────────────
 setting  value
 version  R version 4.4.0 (2024-04-24)
 os       macOS Sonoma 14.5
 system   aarch64, darwin20
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/Denver
 date     2024-07-24
 rstudio  2024.04.1+748 Chocolate Cosmos (desktop)
 pandoc   3.1.11 @ /Applications/RStudio.app/Contents/Resources/app/quarto/bin/tools/aarch64/ (via rmarkdown)

─ Packages ──────────────────────────────────────────────
 package              * version  date (UTC) lib source
 abind                  1.4-5    2016-07-21 [1] CRAN (R 4.4.0)
 assertthat             0.2.1    2019-03-21 [1] CRAN (R 4.4.0)
 base64enc              0.1-3    2015-07-28 [1] CRAN (R 4.4.0)
 Biobase              * 2.64.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 BiocGenerics         * 0.50.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 bslib                * 0.7.0    2024-03-29 [1] CRAN (R 4.4.0)
 cachem                 1.0.8    2023-05-01 [1] CRAN (R 4.4.0)
 cli                    3.6.2    2023-12-11 [1] CRAN (R 4.4.0)
 cluster                2.1.6    2023-12-01 [1] CRAN (R 4.4.0)
 codetools              0.2-20   2024-03-31 [1] CRAN (R 4.4.0)
 colorspace             2.1-0    2023-01-23 [1] CRAN (R 4.4.0)
 colourpicker         * 1.3.0    2023-08-21 [1] CRAN (R 4.4.0)
 cowplot              * 1.1.3    2024-01-22 [1] CRAN (R 4.4.0)
 crayon                 1.5.2    2022-09-29 [1] CRAN (R 4.4.0)
 crosstalk              1.2.1    2023-11-23 [1] CRAN (R 4.4.0)
 data.table           * 1.15.4   2024-03-30 [1] CRAN (R 4.4.0)
 DelayedArray           0.30.1   2024-05-07 [1] Bioconductor 3.19 (R 4.4.0)
 deldir                 2.0-4    2024-02-28 [1] CRAN (R 4.4.0)
 devtools               2.4.5    2022-10-11 [1] CRAN (R 4.4.0)
 digest                 0.6.35   2024-03-11 [1] CRAN (R 4.4.0)
 dotCall64              1.1-1    2023-11-28 [1] CRAN (R 4.4.0)
 dplyr                * 1.1.4    2023-11-17 [1] CRAN (R 4.4.0)
 DT                   * 0.33     2024-04-04 [1] CRAN (R 4.4.0)
 ellipsis               0.3.2    2021-04-29 [1] CRAN (R 4.4.0)
 evaluate               0.23     2023-11-01 [1] CRAN (R 4.4.0)
 fansi                  1.0.6    2023-12-08 [1] CRAN (R 4.4.0)
 farver                 2.1.2    2024-05-13 [1] CRAN (R 4.4.0)
 fastDummies            1.7.3    2023-07-06 [1] CRAN (R 4.4.0)
 fastmap                1.2.0    2024-05-15 [1] CRAN (R 4.4.0)
 fitdistrplus           1.1-11   2023-04-25 [1] CRAN (R 4.4.0)
 fontawesome            0.5.2    2023-08-19 [1] CRAN (R 4.4.0)
 fs                     1.6.4    2024-04-25 [1] CRAN (R 4.4.0)
 future                 1.33.2   2024-03-26 [1] CRAN (R 4.4.0)
 future.apply           1.11.2   2024-03-28 [1] CRAN (R 4.4.0)
 generics               0.1.3    2022-07-05 [1] CRAN (R 4.4.0)
 GenomeInfoDb         * 1.40.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 GenomeInfoDbData       1.2.12   2024-05-15 [1] Bioconductor
 GenomicRanges        * 1.56.0   2024-05-06 [1] Bioconductor 3.19 (R 4.4.0)
 ggplot2              * 3.5.1    2024-04-23 [1] CRAN (R 4.4.0)
 ggrepel                0.9.5    2024-01-10 [1] CRAN (R 4.4.0)
 ggridges               0.5.6    2024-01-23 [1] CRAN (R 4.4.0)
 ggsci                * 3.0.3    2024-03-25 [1] CRAN (R 4.4.0)
 globals                0.16.3   2024-03-08 [1] CRAN (R 4.4.0)
 glue                 * 1.7.0    2024-01-09 [1] CRAN (R 4.4.0)
 goftest                1.2-3    2021-10-07 [1] CRAN (R 4.4.0)
 gridExtra            * 2.3      2017-09-09 [1] CRAN (R 4.4.0)
 gtable                 0.3.5    2024-04-22 [1] CRAN (R 4.4.0)
 gtools               * 3.9.5    2023-11-20 [1] CRAN (R 4.4.0)
 HDF5Array              1.32.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 htmltools            * 0.5.8.1  2024-04-04 [1] CRAN (R 4.4.0)
 htmlwidgets            1.6.4    2023-12-06 [1] CRAN (R 4.4.0)
 httpuv                 1.6.15   2024-03-26 [1] CRAN (R 4.4.0)
 httr                   1.4.7    2023-08-15 [1] CRAN (R 4.4.0)
 ica                    1.0-3    2022-07-08 [1] CRAN (R 4.4.0)
 igraph                 2.0.3    2024-03-13 [1] CRAN (R 4.4.0)
 IRanges              * 2.38.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 irlba                  2.3.5.1  2022-10-03 [1] CRAN (R 4.4.0)
 jquerylib              0.1.4    2021-04-26 [1] CRAN (R 4.4.0)
 jsonlite               1.8.8    2023-12-04 [1] CRAN (R 4.4.0)
 KernSmooth             2.23-22  2023-07-10 [1] CRAN (R 4.4.0)
 knitr                  1.46     2024-04-06 [1] CRAN (R 4.4.0)
 labeling               0.4.3    2023-08-29 [1] CRAN (R 4.4.0)
 later                  1.3.2    2023-12-06 [1] CRAN (R 4.4.0)
 lattice                0.22-6   2024-03-20 [1] CRAN (R 4.4.0)
 lazyeval               0.2.2    2019-03-15 [1] CRAN (R 4.4.0)
 learnr                 0.11.5   2023-09-28 [1] CRAN (R 4.4.0)
 leiden                 0.4.3.1  2023-11-17 [1] CRAN (R 4.4.0)
 lifecycle              1.0.4    2023-11-07 [1] CRAN (R 4.4.0)
 listenv                0.9.1    2024-01-29 [1] CRAN (R 4.4.0)
 lmtest                 0.9-40   2022-03-21 [1] CRAN (R 4.4.0)
 magrittr               2.0.3    2022-03-30 [1] CRAN (R 4.4.0)
 MASS                   7.3-60.2 2024-04-24 [1] local
 Matrix                 1.7-0    2024-03-22 [1] CRAN (R 4.4.0)
 MatrixGenerics       * 1.16.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 matrixStats          * 1.3.0    2024-04-11 [1] CRAN (R 4.4.0)
 memoise                2.0.1    2021-11-26 [1] CRAN (R 4.4.0)
 mime                   0.12     2021-09-28 [1] CRAN (R 4.4.0)
 miniUI                 0.1.1.1  2018-05-18 [1] CRAN (R 4.4.0)
 munsell                0.5.1    2024-04-01 [1] CRAN (R 4.4.0)
 nlme                   3.1-164  2023-11-27 [1] CRAN (R 4.4.0)
 parallelly             1.37.1   2024-02-29 [1] CRAN (R 4.4.0)
 patchwork            * 1.2.0    2024-01-08 [1] CRAN (R 4.4.0)
 pbapply                1.7-2    2023-06-27 [1] CRAN (R 4.4.0)
 pillar                 1.9.0    2023-03-22 [1] CRAN (R 4.4.0)
 pkgbuild               1.4.4    2024-03-17 [1] CRAN (R 4.4.0)
 pkgconfig              2.0.3    2019-09-22 [1] CRAN (R 4.4.0)
 pkgload                1.3.4    2024-01-16 [1] CRAN (R 4.4.0)
 plotly                 4.10.4   2024-01-13 [1] CRAN (R 4.4.0)
 plyr                   1.8.9    2023-10-02 [1] CRAN (R 4.4.0)
 png                    0.1-8    2022-11-29 [1] CRAN (R 4.4.0)
 polyclip               1.10-6   2023-09-27 [1] CRAN (R 4.4.0)
 presto               * 1.0.0    2024-05-15 [1] Github (immunogenomics/presto@7636b3d)
 profvis              * 0.3.8    2023-05-02 [1] CRAN (R 4.4.0)
 progressr              0.14.0   2023-08-10 [1] CRAN (R 4.4.0)
 promises               1.3.0    2024-04-05 [1] CRAN (R 4.4.0)
 pryr                 * 0.1.6    2023-01-17 [1] CRAN (R 4.4.0)
 purrr                  1.0.2    2023-08-10 [1] CRAN (R 4.4.0)
 R.devices            * 2.17.2   2024-01-29 [1] CRAN (R 4.4.0)
 R.methodsS3            1.8.2    2022-06-13 [1] CRAN (R 4.4.0)
 R.oo                   1.26.0   2024-01-24 [1] CRAN (R 4.4.0)
 R.utils                2.12.3   2023-11-18 [1] CRAN (R 4.4.0)
 R6                     2.5.1    2021-08-19 [1] CRAN (R 4.4.0)
 ragg                   1.3.2    2024-05-15 [1] CRAN (R 4.4.0)
 RANN                   2.6.1    2019-01-08 [1] CRAN (R 4.4.0)
 RColorBrewer         * 1.1-3    2022-04-03 [1] CRAN (R 4.4.0)
 Rcpp                 * 1.0.12   2024-01-09 [1] CRAN (R 4.4.0)
 RcppAnnoy              0.0.22   2024-01-23 [1] CRAN (R 4.4.0)
 RcppHNSW               0.6.0    2024-02-04 [1] CRAN (R 4.4.0)
 reactlog             * 1.1.1    2022-09-26 [1] CRAN (R 4.4.0)
 remotes                2.5.0    2024-03-17 [1] CRAN (R 4.4.0)
 reshape2               1.4.4    2020-04-09 [1] CRAN (R 4.4.0)
 reticulate             1.36.1   2024-04-22 [1] CRAN (R 4.4.0)
 rhdf5                  2.48.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 rhdf5filters           1.16.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 Rhdf5lib               1.26.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 rintrojs             * 0.3.4    2024-01-11 [1] CRAN (R 4.4.0)
 rlang                * 1.1.3    2024-01-10 [1] CRAN (R 4.4.0)
 rlog                 * 0.1.0    2021-02-24 [1] CRAN (R 4.4.0)
 rmarkdown              2.26     2024-03-05 [1] CRAN (R 4.4.0)
 ROCR                   1.0-11   2020-05-02 [1] CRAN (R 4.4.0)
 rprojroot              2.0.4    2023-11-05 [1] CRAN (R 4.4.0)
 RSpectra               0.16-1   2022-04-24 [1] CRAN (R 4.4.0)
 rstudioapi             0.16.0   2024-03-24 [1] CRAN (R 4.4.0)
 Rtsne                  0.17     2023-12-07 [1] CRAN (R 4.4.0)
 S4Arrays               1.4.0    2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 S4Vectors            * 0.42.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 sass                   0.4.9    2024-03-15 [1] CRAN (R 4.4.0)
 scales               * 1.3.0    2023-11-28 [1] CRAN (R 4.4.0)
 scattermore            1.2      2023-06-12 [1] CRAN (R 4.4.0)
 sctransform            0.4.1    2023-10-19 [1] CRAN (R 4.4.0)
 sessioninfo            1.2.2    2021-12-06 [1] CRAN (R 4.4.0)
 Seurat               * 5.0.3    2024-03-18 [1] CRAN (R 4.4.0)
 SeuratObject         * 5.0.2    2024-05-08 [1] CRAN (R 4.4.0)
 shiny                * 1.8.1.1  2024-04-02 [1] CRAN (R 4.4.0)
 shinyBS              * 0.61.1   2022-04-17 [1] CRAN (R 4.4.0)
 shinycssloaders      * 1.0.0    2020-07-28 [1] CRAN (R 4.4.0)
 shinydashboard       * 0.7.2    2021-09-30 [1] CRAN (R 4.4.0)
 shinyjs              * 2.1.0    2021-12-23 [1] CRAN (R 4.4.0)
 shinyWidgets         * 0.8.6    2024-04-24 [1] CRAN (R 4.4.0)
 SingleCellExperiment * 1.26.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 sortable             * 0.5.0    2023-03-26 [1] CRAN (R 4.4.0)
 sp                   * 2.1-4    2024-04-30 [1] CRAN (R 4.4.0)
 spam                   2.10-0   2023-10-23 [1] CRAN (R 4.4.0)
 SparseArray            1.4.3    2024-05-07 [1] Bioconductor 3.19 (R 4.4.0)
 spatstat.data          3.0-4    2024-01-15 [1] CRAN (R 4.4.0)
 spatstat.explore       3.2-7    2024-03-21 [1] CRAN (R 4.4.0)
 spatstat.geom          3.2-9    2024-02-28 [1] CRAN (R 4.4.0)
 spatstat.random        3.2-3    2024-02-29 [1] CRAN (R 4.4.0)
 spatstat.sparse        3.0-3    2023-10-24 [1] CRAN (R 4.4.0)
 spatstat.utils         3.0-4    2023-10-24 [1] CRAN (R 4.4.0)
 stringi                1.8.4    2024-05-06 [1] CRAN (R 4.4.0)
 stringr              * 1.5.1    2023-11-14 [1] CRAN (R 4.4.0)
 SummarizedExperiment * 1.34.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 survival               3.6-4    2024-04-24 [1] CRAN (R 4.4.0)
 systemfonts            1.1.0    2024-05-15 [1] CRAN (R 4.4.0)
 tensor                 1.5      2012-05-05 [1] CRAN (R 4.4.0)
 textshaping            0.4.0    2024-05-24 [1] CRAN (R 4.4.0)
 tibble                 3.2.1    2023-03-20 [1] CRAN (R 4.4.0)
 tidyr                  1.3.1    2024-01-24 [1] CRAN (R 4.4.0)
 tidyselect             1.2.1    2024-03-11 [1] CRAN (R 4.4.0)
 UCSC.utils             1.0.0    2024-05-06 [1] Bioconductor 3.19 (R 4.4.0)
 urlchecker             1.0.1    2021-11-30 [1] CRAN (R 4.4.0)
 usethis                2.2.3    2024-02-19 [1] CRAN (R 4.4.0)
 utf8                   1.2.4    2023-10-22 [1] CRAN (R 4.4.0)
 uwot                   0.2.2    2024-04-21 [1] CRAN (R 4.4.0)
 vctrs                  0.6.5    2023-12-01 [1] CRAN (R 4.4.0)
 viridisLite          * 0.4.2    2023-05-02 [1] CRAN (R 4.4.0)
 waiter               * 0.2.5    2022-01-03 [1] CRAN (R 4.4.0)
 withr                  3.0.0    2024-01-16 [1] CRAN (R 4.4.0)
 xfun                   0.44     2024-05-15 [1] CRAN (R 4.4.0)
 xtable                 1.8-4    2019-04-21 [1] CRAN (R 4.4.0)
 XVector                0.44.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 yaml                 * 2.3.8    2023-12-11 [1] CRAN (R 4.4.0)
 zlibbioc               1.50.0   2024-04-30 [1] Bioconductor 3.19 (R 4.4.0)
 zoo                    1.8-12   2023-04-13 [1] CRAN (R 4.4.0)

 [1] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
─────────────────────────────────────────────────────────
@pvictor
Copy link
Member

pvictor commented Jul 24, 2024

Hello,
You can try to set zIndex argument to a higher value, e.g. zIndex = 123. Use the value you want, for example modal window have zIndex > 1000

Victor

@wish1832
Copy link
Author

Setting zIndex to a higher value resolved the issue. Thanks Victor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants