Skip to content

Commit 91f6fa5

Browse files
committed
Added droptarget to sortable property of ui.item to allow complex canceling.
1 parent e0aa941 commit 91f6fa5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sortable.js

+1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ angular.module('ui.sortable', [])
101101
// the value will be overwritten with the old value
102102
if(!ui.item.sortable.received) {
103103
ui.item.sortable.dropindex = ui.item.index();
104+
ui.item.sortable.droptarget = ui.item.parent();
104105

105106
// Cancel the sort (let ng-repeat do the sort for us)
106107
// Don't cancel if this is the received list because it has

0 commit comments

Comments
 (0)