From 0663cf9b0ae8e69d358b1dfd1d0baa840fc21e91 Mon Sep 17 00:00:00 2001 From: pocketcowboy Date: Sun, 14 Feb 2016 15:52:08 +1100 Subject: [PATCH] fix missing arg for Sortable.utils.index expecting draggable selector --- ng-sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ng-sortable.js b/ng-sortable.js index eb005be..05f12db 100644 --- a/ng-sortable.js +++ b/ng-sortable.js @@ -110,7 +110,7 @@ if (evt.clone) { removed = angular.copy(removed); - prevItems.splice(Sortable.utils.index(evt.clone), 0, prevItems.splice(oldIndex, 1)[0]); + prevItems.splice(Sortable.utils.index(evt.clone, sortable.options.draggable), 0, prevItems.splice(oldIndex, 1)[0]); evt.from.removeChild(evt.clone); } else {