Maybe I've overlooked some simple configuration, but it seems like dropdown buttons don't function correctly in Shiny apps.
However when I put the same code into a really basic Shiny app, the menu drops down, but does not disappear after a selection is made.
require(shiny)
shiny::runApp(list(
ui = bootstrapPage(
div(HTML("I like <u>turtles</u>")),
with(tags,
div(class="dropdown btn-group",
a("Action", class="btn dropdown-toggle", "data-toggle"="dropdown", href="#"),
ul(class="dropdown-menu",
li(a("Foo", href="#")),
li(a("Bar", href="#"))
)
)
)
),
server = function(input, output) { }
))