From d81e2b8dab2ec3369fcbe73cb1d7ceb3f6857128 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 9 Aug 2018 18:05:13 +0200 Subject: [PATCH] Fixed another bug in `moveNodes` --- src/js/Node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Node.js b/src/js/Node.js index cc54a44..5e2ae53 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -2044,7 +2044,7 @@ Node.onDragEnd = function (nodes, event) { ? (newIndex + nodes.length) : newIndex; - if (sameParent || oldIndex !== newIndex) { + if (!sameParent || oldIndex !== newIndex) { // only register this action if the node is actually moved to another place editor._onAction('moveNodes', { count: nodes.length,