Hi @RubaXa! I've tried onAdd event callback but evt.item and evt.from not show up. http://jsfiddle.net/solitary90/m5jq2wcq/ I'm doing wrong? (I've already tried dev-branch)
Activity
yohankoehler commentedon Mar 25, 2015
I've got the same issue, you can fix it by adding keys in the object in the _emitEvent() function in ng-sortable.js.
So the old one (line 80 from ng-sortable.js)
and the new one
.from works great but it seems tha .item is a copy of the item and not the original one
Fix SortableJS#319, add 'from' and 'item' properties.
RubaXa commentedon Mar 25, 2015
Because: https://github.com/RubaXa/Sortable/blob/master/ng-sortable.js#L18-L24
RubaXa commentedon Mar 25, 2015
@yohankoehler Working with DOM elements is not Angular way.
yohankoehler commentedon Mar 25, 2015
@RubaXa You are in a directive.
RubaXa commentedon Mar 25, 2015
@yohankoehler So what? Your commit are forwarding DOM elements from directive to outside.
yohankoehler commentedon Mar 25, 2015
@RubaXa my bad, sorry please forget this commit !!!.
@Raiseupcreativity So I guess you will have to deal with the onRemove event to retrieve the model that the item is comming from.
RubaXa commentedon Mar 25, 2015
@yohankoehler Already forgotten 🙈
simobasso commentedon Mar 26, 2015
yes but I've need access on drag-over target, but i've made another directive for that....