Search and Top Navigation
#4253 closed bug (duplicate)
Opened March 01, 2009 03:38AM UTC
Closed February 28, 2013 01:21PM UTC
Sortable: ui.helper is null when receiving a draggable clone
Reported by: | fosslin | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 2.0.0 |
Component: | ui.sortable | Version: | 1.6rc6 |
Keywords: | sortable, receive, callback, draggable | Cc: | |
Blocked by: | Blocking: |
Description
take this for instance.. if i change from receive to stop or update it will work perfectly... but when having that 'receive' it doesn't do s*** (so).
$(".draggable").draggable({ connectToSortable: '.sortable', helper: 'clone' }); $(".sortable").sortable({ receive : function(e,ui) { ui.item.text("hello there, litlle you.."); } });
Attachments (0)
Change History (10)
Changed March 02, 2009 05:34PM UTC by comment:1
Changed May 07, 2009 11:00AM UTC by comment:2
milestone: | TBD → 1.7.2 |
---|
Changed May 07, 2009 01:24PM UTC by comment:3
milestone: | 1.7.2 → 1.8 |
---|
Changed August 22, 2009 01:51PM UTC by comment:4
priority: | minor → major |
---|
Changed February 10, 2011 02:10AM UTC by comment:5
Test case for this: http://jsfiddle.net/petersendidit/c7DAV/4/
Changed October 11, 2012 02:54PM UTC by comment:6
milestone: | 1.9.0 → 2.0.0 |
---|
Changed October 25, 2012 12:55AM UTC by comment:7
status: | new → open |
---|---|
summary: | callback receive ain't receiving from draggable → Sortable: callback receive ain't receiving from draggable |
Changed February 28, 2013 02:37AM UTC by comment:8
resolution: | → worksforme |
---|---|
status: | open → closed |
I cannot recreate this issue with neither the latest jQuery UI version nor the versions used in this ticket originally. It looks like the receive event has a populated
ui.itemproperty - http://jsfiddle.net/tj_vantoll/FKAuT/.
If anybody else can recreate this please let me know and I can reinvestigate.
Changed February 28, 2013 04:40AM UTC by comment:9
resolution: | worksforme |
---|---|
status: | closed → reopened |
summary: | Sortable: callback receive ain't receiving from draggable → Sortable: ui.helper is null when receiving a draggable clone |
The problem is that ui.item
refers to the original item and there is no way to reference the helper which is being added to the sortable. I'd updated your fiddle so that the text in ui.item
changes on receive so that this is easy to see: http://jsfiddle.net/FKAuT/1/
Changed February 28, 2013 01:21PM UTC by comment:10
resolution: | → duplicate |
---|---|
status: | reopened → closed |
Duplicate of #4303.
problem is:
ui.item is undefined when using callback receive from a draggable list. but not fram a sortable list!