Merge branch 'patch-5' of github.com:neo/react-flow into neo-patch-5

This commit is contained in:
moklick
2022-12-06 17:10:39 +01:00
3 changed files with 3 additions and 3 deletions
@@ -60,7 +60,7 @@ export function checkElementBelowIsValid(
const isValid =
connectionMode === ConnectionMode.Strict
? (isTarget && elementBelowIsSource) || (!isTarget && elementBelowIsTarget)
: true;
: elementBelowNodeId !== nodeId || elementBelowHandleId !== handleId;
if (isValid) {
result.isValid = isValidConnection(connection);