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

virtualSelectInput - can't scroll past the highlighted option #712

Open
joeramirez opened this issue Oct 29, 2024 · 0 comments
Open

virtualSelectInput - can't scroll past the highlighted option #712

joeramirez opened this issue Oct 29, 2024 · 0 comments

Comments

@joeramirez
Copy link

There seems to be an issue where you can't scroll past the item that is highlighted inside of a virtualSelectInput. Very basic example:

library(shiny)
library(shinyWidgets)

ui <- fluidPage(
  virtualSelectInput(
    inputId = "myselector",
    label = "Select your options",
    choices = LETTERS,
    multiple = T,
    selected = NULL
  )
)

server <- function(input, output, session){
}

shinyApp(ui = ui, server = server)

To replicate:

  1. Click to open the selector
  2. Drag the mouse down to highlight (not check/click) the letter "E" (or any item)
  3. Move the mouse to the right into the scrollbar area, such that you keep an item highlighted
  4. Click the down arrow on the scrollbar multiple times until your highlighted item goes towards the top of the list
  5. You should see that as you keep clicking the highlighted item comes back down towards the middle of the scrollbar - ie, it seems that the scroll bar is resetting once the highlighted item gets to the top. Note sure if this is intentional but it's unintuitive that to keep scrolling down you have to have nothing highlighted.
  6. Same occurs even if you use the scroll wheel while the pointer is in the scrollbar area.
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

1 participant