Opened 14 years ago

Closed 14 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:


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 14 years ago by Marc Diethelm


this is a blocker imo.

comment:2 Changed 14 years ago by rdworth

Milestone: TBD1.6
Priority: criticalblocker

comment:3 Changed 14 years ago by Scott González

Owner: set to scott.gonzalez
Status: newaccepted

comment:4 Changed 14 years ago by Scott González

Receive event fixed in r1999.

comment:5 Changed 14 years ago by Scott González

Resolution: fixed
Status: acceptedclosed

Should be fixed in r2000.

Note: See TracTickets for help on using tickets.