fix(core): trigger connect if end handle exist in state

This commit is contained in:
braks
2023-06-15 22:35:25 +02:00
committed by Braks
parent 2c2fdf9577
commit b386c8580f
+2 -1
View File
@@ -46,6 +46,7 @@ export function useHandle({
connectionRadius, connectionRadius,
connectOnClick, connectOnClick,
connectionClickStartHandle, connectionClickStartHandle,
connectionEndHandle,
nodesConnectable, nodesConnectable,
autoPanOnConnect, autoPanOnConnect,
findNode, findNode,
@@ -197,7 +198,7 @@ export function useHandle({
} }
function onPointerUp(event: MouseTouchEvent) { function onPointerUp(event: MouseTouchEvent) {
if ((closestHandle || handleDomNode) && connection && isValid) { if ((closestHandle || handleDomNode || connectionEndHandle.value) && connection && isValid) {
if (!onEdgeUpdate) { if (!onEdgeUpdate) {
emits.connect(connection) emits.connect(connection)
} else { } else {