Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 4c14104

Browse files
committed
#153 reorder only, when not over
1 parent ff3562f commit 4c14104

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Resources/assets/js/adapter/fancytree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export class FancytreeAdapter {
306306
}, 1000);
307307
};
308308
this.requestData.move(dropNodePath, targetPath).done((responseData) => {
309-
if (this.dndOptions.reorder) {
309+
if (positionBefore && this.dndOptions.reorder) {
310310
this.requestData.reorder(parenPath, dropedAtPath, targetPath, data.hitMode).done((responseData) => {
311311
moveNodeInTree(responseData);
312312
if (fancytreeOptions.hasOwnProperty('sortChildren')) {

0 commit comments

Comments
 (0)