RinteRface / shinydashboardPlus

extensions for shinydashboard
https://shinydashboardplus.rinterface.com
Other
448 stars 78 forks source link

pickerInput doesn't work on leftUi #120

Open vituri opened 3 years ago

vituri commented 3 years ago

Hi!

It seems that the pickerInput function (from shinywidgets) doesn't work on the leftUi menu. It renders but when clicked the options do not show. Here is an example. I have downloaded the latest github version of shinydashboardplus and the latest cran version of shinywidgets.

library(shiny); library(shinydashboard); library(shinyWidgets); library(shinydashboardPlus)

shinyApp(
  ui = dashboardPage(
    header = dashboardHeader(
      leftUi = tagList(
        dropdownBlock(
          id = "mydropdown",
          title = "Dropdown 1",
          icon = "sliders",
          pickerInput(
            inputId = 'test', 
            choices = letters[1:10], 
            selected = 'a')
        )
      )
    ),
    sidebar = dashboardSidebar(),
    body = dashboardBody(
      setShadow(class = "dropdown-menu")
    ),
    title = "DashboardPage"
  ),
  server = function(input, output) { }
)
jyu-sm commented 7 months ago

I have the same issue: more precisely, pickerInput does not work inside dropdownBlock, it works outside the dropdownBlock in tagList. The rendered html in the browser seems correct but for some reason, the options/choices do not show up when clicked.