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

Mouse movement (without drag) within selectizeInput are triggering sort of the parent #101

Open
stevepowell99 opened this issue Mar 11, 2024 · 0 comments

Comments

@stevepowell99
Copy link

Since updating Shiny to 1.8 and shinyjqui to 0.4.1.9000, I am getting this weird behaviour - in some circumstances, trying to scroll the selectize dropdown using mouse only (no click) is being understood as a drag and is causing the parent element to be moved.
This makes the selectize unusable within a sortable element.
(In the final section of the gif, there is no dragging, only an attempt to scroll within the selectize.)

library(shinyjqui)

ui <- fluidPage(
  div(id="foo",
      tags$li("Coffice"), 
      tags$li("Tea"), 
      selectizeInput("#bar",NULL,choices=c("a","b","c"),multiple=T)
  )
)

server <- function(input, output, session) {
  jqui_sortable('#foo')
  
}

shinyApp(ui, server)

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