Skip to content

Commit b386c85

Browse files
committed
fix(core): trigger connect if end handle exist in state
1 parent 2c2fdf9 commit b386c85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/composables/useHandle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export function useHandle({
4646
connectionRadius,
4747
connectOnClick,
4848
connectionClickStartHandle,
49+
connectionEndHandle,
4950
nodesConnectable,
5051
autoPanOnConnect,
5152
findNode,
@@ -197,7 +198,7 @@ export function useHandle({
197198
}
198199

199200
function onPointerUp(event: MouseTouchEvent) {
200-
if ((closestHandle || handleDomNode) && connection && isValid) {
201+
if ((closestHandle || handleDomNode || connectionEndHandle.value) && connection && isValid) {
201202
if (!onEdgeUpdate) {
202203
emits.connect(connection)
203204
} else {

0 commit comments

Comments
 (0)