We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a52e1 commit c2aad1eCopy full SHA for c2aad1e
.changeset/stale-phones-cross.md
@@ -0,0 +1,5 @@
1
+---
2
+"@vue-flow/core": patch
3
4
+
5
+Fetch the correct source and target nodes for isValidConnection.
packages/core/src/utils/handle.ts
@@ -191,8 +191,8 @@ export function isValidHandle(
191
isValidConnection(connection, {
192
nodes,
193
edges,
194
- sourceNode: findNode(fromNodeId)!,
195
- targetNode: findNode(handleNodeId)!,
+ sourceNode: findNode(connection.source)!,
+ targetNode: findNode(connection.target)!,
196
})
197
198
result.toHandle = handle
0 commit comments