Merge pull request #2740 from wbkd/michaelspiss-patch-1
EdgeRenderer: check both handles for connection mode loose
This commit is contained in:
5
.changeset/tidy-carpets-play.md
Normal file
5
.changeset/tidy-carpets-play.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@reactflow/core': patch
|
||||
---
|
||||
|
||||
EdgeRenderer: check all handles for connection mode loose
|
||||
@@ -116,7 +116,7 @@ const EdgeRenderer = (props: EdgeRendererProps) => {
|
||||
const targetNodeHandles =
|
||||
connectionMode === ConnectionMode.Strict
|
||||
? targetHandleBounds!.target
|
||||
: targetHandleBounds!.target || targetHandleBounds!.source;
|
||||
: (targetHandleBounds!.target ?? []).concat(targetHandleBounds!.source ?? []);
|
||||
const sourceHandle = getHandle(sourceHandleBounds!.source!, edge.sourceHandle || null);
|
||||
const targetHandle = getHandle(targetNodeHandles!, edge.targetHandle || null);
|
||||
const sourcePosition = sourceHandle?.position || Position.Bottom;
|
||||
|
||||
Reference in New Issue
Block a user