Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix drag and drop in the tree, closes #984
zadam0a9462241360
diff --git a/src/public/app/widgets/note_tree.js b/src/public/app/widgets/note_tree.jsindex 368da74254..7005579dcc 100644--- a/src/public/app/widgets/note_tree.js+++ b/src/public/app/widgets/note_tree.js@@ -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);