Skip to content

Commit 34d2302

Browse files
committed
Correctly determine if element should be moved or cloned
1 parent 6e401c7 commit 34d2302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-legacy-sortable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113

114114
removed = prevItems[oldIndex];
115115

116-
if (evt.clone) {
116+
if (Sortable.active && Sortable.active.lastPullMode === 'clone') {
117117
removed = angular.copy(removed);
118118
prevItems.splice(Sortable.utils.index(evt.clone, sortable.options.draggable), 0, prevItems.splice(oldIndex, 1)[0]);
119119

0 commit comments

Comments
 (0)