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,
connectOnClick,
connectionClickStartHandle,
connectionEndHandle,
nodesConnectable,
autoPanOnConnect,
findNode,
@@ -197,7 +198,7 @@ export function useHandle({
}
function onPointerUp(event: MouseTouchEvent) {
if ((closestHandle || handleDomNode) && connection && isValid) {
if ((closestHandle || handleDomNode || connectionEndHandle.value) && connection && isValid) {
if (!onEdgeUpdate) {
emits.connect(connection)
} else {