Skip to content

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

@stevepowell99

Description

@stevepowell99

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions