Skip to content

Commit

Permalink
fix: Invalid anchors for the tree root that has dropdown children
Browse files Browse the repository at this point in the history
  • Loading branch information
miyanokomiya committed Apr 1, 2024
1 parent 8eed907 commit 2891b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/shapeHandlers/treeHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const newTreeHandler = defineShapeHandler<TreeHitResult, Option>((option)
if (tree.children.length > 0) {
const node = shapeComposite.mergedShapeMap[tree.children[0].id] as TreeNodeShape;
const vertical = node.direction === 0 || node.direction === 2;
return directionSrc !== undefined
return node.dropdown !== undefined
? dropdownAnchors
: vertical
? [
Expand Down

0 comments on commit 2891b4d

Please sign in to comment.