From 2370e085804e580ad62e6fc697ff16c7754732e2 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 14 Jun 2018 02:27:11 +0200 Subject: [PATCH] Trigger end move for all dropped models. Closes #1196 --- src/utils/Sorter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Sorter.js b/src/utils/Sorter.js index 4cb5bde77..dfa678165 100644 --- a/src/utils/Sorter.js +++ b/src/utils/Sorter.js @@ -947,7 +947,7 @@ module.exports = Backbone.View.extend({ this.toggleSortCursor(); this.toMove = null; - isFunction(onEndMove) && onEndMove(moved, this); + isFunction(onEndMove) && moved.forEach(m => onEndMove(m, this)); }, /**