shinydashboardPlus icon indicating copy to clipboard operation
shinydashboardPlus copied to clipboard

pickerInput doesn't work on leftUi

Open vituri opened this issue 3 years ago • 1 comments

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) { }
)

vituri avatar Mar 22 '21 19:03 vituri

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.

jyu-sm avatar Nov 30 '23 19:11 jyu-sm