Skip to main content

Search and Top Navigation

#8669 closed bug (notabug)

Opened October 14, 2012 06:15AM UTC

Closed November 23, 2012 03:27AM UTC

Last modified March 08, 2013 03:52AM UTC

Sortable: 'out' callback triggered on dropping item

Reported by: nc Owned by: mikesherov
Priority: minor Milestone: 1.10.0
Component: ui.sortable Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/drewP/m7VJq/1/

Add the following line to the 'out' callback function:

''alert('out');''

Run the change.

Click-drag-release one of the list items, dragging only a few pixels.

The out callback seems to be getting called on the release (after the beforeStop).

Tried and occurs with jQuery UI 1.8.23, 1.8.18, 1.8.16 on FireFox 15.0.1 and IE 8 on Windows 7.

Attachments (0)
Change History (5)

Changed November 03, 2012 09:25PM UTC by petersendidit comment:1

status: newopen
summary: Sortable 'out' callback triggered on dropping item after dragging only a few pixelsSortable: 'out' callback triggered on dropping item

http://jsfiddle.net/petersendidit/m7VJq/13/

Looks like out is getting triggered on every drop.

Changed November 23, 2012 03:10AM UTC by mikesherov comment:2

owner: → mikesherov
status: openassigned

http://jsfiddle.net/fPMXB/ confirmed on latest too.

Changed November 23, 2012 03:27AM UTC by mikesherov comment:3

resolution: → notabug
status: assignedclosed

Thanks for contributing! Unfortunately, this is actually intended behavior, but the docs are unclear on this point. I'll go ahead and update the docs to clarify this point. If you need to do something only on over events that aren't on drops, you can use the "beforeStop" event to prevent an action on the subsequent "out" event.

Changed November 23, 2012 03:31AM UTC by mikesherov comment:4

Documentation issue documented here: https://github.com/jquery/api.jqueryui.com/issues/69

Changed March 08, 2013 03:52AM UTC by tj.vantoll comment:5

#5890 is a duplicate of this ticket.