Sortable receive: how do I get new item?
Heres the situation: I have a draggable that I am plopping into a sortable list (its clone, anyway). I need to copy some (but not all) of its data() into the new item in the sortable. However, for some strange reason, ui.sender and ui.item both point to the same, original object. Which doesn't seem to make much sense, especially since the in the beforeStop stop event, which is fired BEFORE the receive event, ui.item points to our newly created item in the sortable.
There are of course ways around this, but they all feel horribly inelegant and hacky.
How do I access the
new item while in the receive event?