Is it possible to use selectInput in boxDropdown? Once I try to select an item, the dropdown closes. It seems to close if the user does not click exactly on a button. If I press slightly below a checkbox from checkboxGroupInput it closes, but not if I click on the button exactly. Does it not recognize the selectInput as a button?
How do I get selectInput to work within the boxDropdown? It works perfectly well in boxSidebar.
Thank you!
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
box(
title = "Test App for selectInput in dropdown",
dropdownMenu = boxDropdown(
checkboxGroupInput("checkbox", "Check", c("a", "b", "c")),
boxDropdownItem(selectInput("selectinput", "Select", c("a", "b", "c")))
),
plotOutput("distPlot")
)
)
)
server = function(input, output) {
output$distPlot <- renderPlot({
hist(100)
})
}
shinyApp(ui, server)