Opened 14 years ago
Closed 10 years ago
#4253 closed bug (duplicate)
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.."); } });
Change History (10)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Milestone: | TBD → 1.7.2 |
---|
comment:3 Changed 14 years ago by
Milestone: | 1.7.2 → 1.8 |
---|
comment:4 Changed 13 years ago by
Priority: | minor → major |
---|
comment:6 Changed 10 years ago by
Milestone: | 1.9.0 → 2.0.0 |
---|
comment:7 Changed 10 years ago by
Status: | new → open |
---|---|
Summary: | callback receive ain't receiving from draggable → Sortable: callback receive ain't receiving from draggable |
comment:8 Changed 10 years ago by
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.item
property - http://jsfiddle.net/tj_vantoll/FKAuT/.
If anybody else can recreate this please let me know and I can reinvestigate.
comment:9 Changed 10 years ago by
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/
comment:10 Changed 10 years ago by
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!