Fixed another bug in `moveNodes`
This commit is contained in:
parent
2ee39cbca8
commit
d81e2b8dab
|
@ -2044,7 +2044,7 @@ Node.onDragEnd = function (nodes, event) {
|
||||||
? (newIndex + nodes.length)
|
? (newIndex + nodes.length)
|
||||||
: newIndex;
|
: newIndex;
|
||||||
|
|
||||||
if (sameParent || oldIndex !== newIndex) {
|
if (!sameParent || oldIndex !== newIndex) {
|
||||||
// only register this action if the node is actually moved to another place
|
// only register this action if the node is actually moved to another place
|
||||||
editor._onAction('moveNodes', {
|
editor._onAction('moveNodes', {
|
||||||
count: nodes.length,
|
count: nodes.length,
|
||||||
|
|
Loading…
Reference in New Issue