Skip to content

Commit

Permalink
fix focusOnBranch sur data-path=1
Browse files Browse the repository at this point in the history
  • Loading branch information
eyssette committed Oct 15, 2024
1 parent b97b7a6 commit c31ea96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Mindmap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@
}
}
if(!focusOnBranch || circleFill != 'rgb(255, 255, 255)') {
targetElement.dispatchEvent(new MouseEvent("click"));
if(dataPathParentElement != "1") {
targetElement.dispatchEvent(new MouseEvent("click"));
}
}
if(automaticResize) {
mm.fit();
Expand Down

0 comments on commit c31ea96

Please sign in to comment.