Yang-Tang / shinyjqui

jQuery UI Interactions and Effects for Shiny
https://yang-tang.github.io/shinyjqui/
Other
273 stars 32 forks source link

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

Open stevepowell99 opened 7 months ago

stevepowell99 commented 7 months ago

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)