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

pickerInput doesn't work on leftUi #120

Open
vituri opened this issue Mar 22, 2021 · 1 comment
Open

pickerInput doesn't work on leftUi #120

vituri opened this issue Mar 22, 2021 · 1 comment

Comments

@vituri
Copy link

vituri commented Mar 22, 2021

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
Copy link

jyu-sm commented Nov 30, 2023

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.

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