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 comment:1
status: | new → open |
---|---|
summary: | Sortable 'out' callback triggered on dropping item after dragging only a few pixels → Sortable: 'out' callback triggered on dropping item |
Changed November 23, 2012 03:10AM UTC by comment:2
owner: | → mikesherov |
---|---|
status: | open → assigned |
http://jsfiddle.net/fPMXB/ confirmed on latest too.
Changed November 23, 2012 03:27AM UTC by comment:3
resolution: | → notabug |
---|---|
status: | assigned → closed |
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 comment:4
Documentation issue documented here: https://github.com/jquery/api.jqueryui.com/issues/69
http://jsfiddle.net/petersendidit/m7VJq/13/
Looks like out is getting triggered on every drop.