shinydashboardPlus
shinydashboardPlus copied to clipboard
pickerInput doesn't work on leftUi
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) { }
)
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.