Opened 8 years ago

Closed 8 years ago

#4009 closed bug (fixed)

connectToSortable doesn't contain ui.item in callbacks

Reported by: natecavanaugh Owned by: scottgonzalez
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 8 years ago by Marc Diethelm


this is a blocker imo.

comment:2 Changed 8 years ago by rdworth

  • Milestone changed from TBD to 1.6
  • Priority changed from critical to blocker

comment:3 Changed 8 years ago by scottgonzalez

  • Owner set to scott.gonzalez
  • Status changed from new to accepted

comment:4 Changed 8 years ago by scottgonzalez

Receive event fixed in r1999.

comment:5 Changed 8 years ago by scottgonzalez

  • Resolution set to fixed
  • Status changed from accepted to closed

Should be fixed in r2000.

Note: See TracTickets for help on using tickets.