Ticket #4009 (closed bug: fixed)

Opened 7 years ago

Last modified 7 years ago

connectToSortable doesn't contain ui.item in callbacks

Reported by: natecavanaugh Owned by: scott.gonzalez
Priority: blocker Milestone: 1.7
Component: ui.sortable Version: 1.6rc6
Keywords: Cc:
Blocking: Blocked by:


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

comment:1 Changed 7 years ago by Marc Diethelm


this is a blocker imo.

comment:2 Changed 7 years ago by rdworth

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

comment:3 Changed 7 years ago by scott.gonzalez

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

comment:4 Changed 7 years ago by scott.gonzalez

Receive event fixed in r1999.

comment:5 Changed 7 years ago by scott.gonzalez

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

Should be fixed in r2000.

Note: See TracTickets for help on using tickets.