0

when I click the selection everytime, the drop download box close automaticlly.

Please how to keep the drop box open ?

Great Thanks

library(shiny)
library(shinyWidgets)
ui <- fluidPage(
dropdownButton(
label="Close after click",
style = "unite",
icon = icon("gear"),
multiInput('test','test',choices = letters)
)
)
server <- function(input, output, session) {}
shinyApp(ui, server)
zhang jing
  • 141
  • 9
  • it didn't disappear on my local, which shiny version do you use ? – Samet Sökel Aug 29 '21 at 16:10
  • If it closes for you after each selection, a workaround is shown in the answer [here](https://stackoverflow.com/questions/68864740/how-to-stop-dropdownbutton-closing-with-every-selectinput-selection/68869748#68869748) – YBS Aug 29 '21 at 17:04
  • thanks @SametSökel, my shiny ver is 1.6.0, shinyWidgets version is 0.6.0, R version is 4.1.0, PC is windows10. – zhang jing Aug 29 '21 at 22:48
  • thanks @YBS, I saw that answer before. Both dropdown and dropdownBotton get the same result. And I found the dorp box doesn't disappear in all widget s. In some widgets it keep therew. – zhang jing Aug 29 '21 at 22:52
  • Hence, use `toggleDropdownButton`, as a workaround. – YBS Aug 29 '21 at 22:57

0 Answers0