Opened 13 years ago
Closed 13 years ago
#4009 closed bug (fixed)
connectToSortable doesn't contain ui.item in callbacks
Reported by: | natecavanaugh | Owned by: | Scott González |
---|---|---|---|
Priority: | blocker | Milestone: | 1.7 |
Component: | ui.sortable | Version: | 1.6rc6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If you try to use the connectToSortable, callbacks registered to an event, such as receive or activate do not contain the ui.item element.
You can test this with the following code in tests/visual/sortable/sortable_massive_scale.html
$(function() {
var uls = $('ul').not(".draggable"); uls.sortable({ items: "li", connectWith: [uls], }); $("ul.draggable li").draggable({ helper: "clone", connectToSortable: "ul"}); uls.bind('sortablereceive', function(event, ui) {
console.log('sortablereceive', this, arguments, ui.item);
});
});
Change History (5)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Milestone: | TBD → 1.6 |
---|---|
Priority: | critical → blocker |
comment:3 Changed 13 years ago by
Owner: | set to scott.gonzalez |
---|---|
Status: | new → accepted |
comment:5 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Should be fixed in r2000.
Note: See
TracTickets for help on using
tickets.
confirmed.
this is a blocker imo.