mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-08 05:49:49 -06:00
fix drag and drop in the tree, closes #984
This commit is contained in:
@@ -177,7 +177,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
// This function MUST be defined to enable dropping of items on the tree.
|
||||
// data.hitMode is 'before', 'after', or 'over'.
|
||||
|
||||
const selectedBranchIds = this.getSelectedNodes().map(node => node.data.branchId);
|
||||
const selectedBranchIds = this.getSelectedOrActiveNodes().map(node => node.data.branchId);
|
||||
|
||||
if (data.hitMode === "before") {
|
||||
branchService.moveBeforeBranch(selectedBranchIds, node.data.branchId);
|
||||
|
||||
Reference in New Issue
Block a user