Merge pull request #2740 from wbkd/michaelspiss-patch-1
EdgeRenderer: check both handles for connection mode loose
This commit is contained in:
@@ -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 =
|
const targetNodeHandles =
|
||||||
connectionMode === ConnectionMode.Strict
|
connectionMode === ConnectionMode.Strict
|
||||||
? targetHandleBounds!.target
|
? targetHandleBounds!.target
|
||||||
: targetHandleBounds!.target || targetHandleBounds!.source;
|
: (targetHandleBounds!.target ?? []).concat(targetHandleBounds!.source ?? []);
|
||||||
const sourceHandle = getHandle(sourceHandleBounds!.source!, edge.sourceHandle || null);
|
const sourceHandle = getHandle(sourceHandleBounds!.source!, edge.sourceHandle || null);
|
||||||
const targetHandle = getHandle(targetNodeHandles!, edge.targetHandle || null);
|
const targetHandle = getHandle(targetNodeHandles!, edge.targetHandle || null);
|
||||||
const sourcePosition = sourceHandle?.position || Position.Bottom;
|
const sourcePosition = sourceHandle?.position || Position.Bottom;
|
||||||
|
|||||||
Reference in New Issue
Block a user