Skip to main content

Search and Top Navigation

#15211 closed bug (worksforme)

Opened June 28, 2017 02:47PM UTC

Closed June 30, 2017 06:50PM UTC

jQuery UI Selectable unbinds click events from anchors

Reported by: kasynych Owned by:
Priority: minor Milestone: none
Component: ui.selectable Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:
Description

I think this is a bug because when I initialize the selectable with the **filter** option, the click events from anchors in items which do not match filter are also unbound.

Please view an example here:

https://jsfiddle.net/u90z12zd/1/

Attachments (0)
Change History (1)

Changed June 30, 2017 06:50PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Nothing is being unbound; the events are being prevented because you've told the selectable to always be active. Instead, you should tell the selectable to only start selecting after the mouse has been moved a certain distance. See https://jsfiddle.net/u90z12zd/2/ and http://api.jqueryui.com/selectable/#option-distance.