chore(store): add current connection result closes #2916

This commit is contained in:
moklick
2023-03-20 17:33:15 +01:00
parent 5bcf586694
commit 0f2eee7706
9 changed files with 69 additions and 3 deletions
@@ -93,6 +93,8 @@ export function handlePointerDown({
connectionHandleId: handleId,
connectionHandleType: handleType,
connectionStatus: null,
connectionTargetNodeId: null,
connectionTargetHandeId: null,
});
onConnectStart?.(event, { nodeId, handleId, handleType });
@@ -139,6 +141,8 @@ export function handlePointerDown({
)
: connectionPosition,
connectionStatus: getConnectionStatus(!!prevClosestHandle, isValid),
connectionTargetNodeId: connection.target,
connectionTargetHandleId: connection.targetHandle,
});
if (!prevClosestHandle && !isValid && !handleDomNode) {