Skip to content

Commit 36e2b0c

Browse files
committed
When dropping inside a group, append nodes rather than prepending them
1 parent 690ab22 commit 36e2b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ class TreeView extends EventEmitter {
494494
if (!dropInfo.target.classList.contains("group")) return;
495495

496496
newParent = dropInfo.target.nextSibling as HTMLElement;
497-
referenceElt = newParent.firstChild as HTMLElement;
497+
referenceElt = null;
498498
break;
499499

500500
case "below":

0 commit comments

Comments
 (0)