Ticket #4009 (closed bug: fixed)
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: |
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
Note: See
TracTickets for help on using
tickets.


confirmed.
this is a blocker imo.