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

v1.8.0: Unable to highlight multiple selected values at once in selectInput/selectizeInput #3977

Open
etbrand opened this issue Jan 23, 2024 · 1 comment

Comments

@etbrand
Copy link

etbrand commented Jan 23, 2024

Up until v1.7.5.1, it was possible to highlight multiple selected values in a selectInput/selectizeInput by using shift + click or ctrl + click and remove them all at once, e.g.:

library(shiny)

ui <- fluidPage(
  selectInput(
    inputId = "letters",
    label = "Letters",
    choices = LETTERS,
    selected = LETTERS,
    multiple = TRUE
  )
)

server <- function(input, output) { }

shinyApp(ui, server)

In v1.8.0, only one can be selected at a time:

This is with R 4.3.1 on Windows 10 and happens both in the RStudio viewer and on Chrome.

@gadenbuie
Copy link
Member

Hi @etbrand. We recently updated shiny to use the latest version of selectize.js, which brought with it a large number of improvements but also a few behavior changes.

This appears to be a change in behavior caused by selectize.js. You can see in this example in their docs that it's not possible to activate multiple options from the current selection.

That said, their README clearly states:

  • Select & delete multiple items at once Hold down option on Mac or ctrl on Windows to select more than one item to delete.

So this might be a bug that can be fixed by the selectize maintainers in the future.

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