Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 65ff2f6

Browse files
committed
Merge pull request #108 from thgreasi/angular1.2
Added droptarget to sortable property of ui.item to ease complex canceling
2 parents 1c55629 + 91f6fa5 commit 65ff2f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sortable.js

Lines changed: 1 addition & 0 deletions
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)