I want to adjust the shiny selectizeInput widget to allow multiple choices to be selected, but the default behaviour is to keep the list of choices open until to click somewhere else (see http://shiny.rstudio.com/gallery/selectize-examples.html number 2). In my application the user must select multiple choices from time to time but most of the time just one. Hence, I want the list of shown choices to collapse after every single selection, but the shiny parameters of selectizeInput seem to not allow this functionality.
Any ideas how to alter this standard behaviour?
selectizeInput(
inputId = "portfolios",
label = "Select Portfolio(s):",
choices = currPortfolios,
selected = "",
multiple = TRUE,
options = list(maxItems = 5)
)