File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/core/src/components/ConnectionLine Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @vue-flow/core " : patch
3
+ ---
4
+
5
+ Use all handle bounds when using loose connection mode during edge update
Original file line number Diff line number Diff line change @@ -62,10 +62,11 @@ const ConnectionLine = defineComponent({
62
62
const handleType = connectionStartHandle . value . type
63
63
64
64
const fromHandleBounds = fromNode . value . handleBounds
65
- let handleBounds = fromHandleBounds ?. [ handleType ]
65
+ let handleBounds = fromHandleBounds ?. [ handleType ] || [ ]
66
66
67
67
if ( connectionMode . value === ConnectionMode . Loose ) {
68
- handleBounds = handleBounds || fromHandleBounds ?. [ handleType === 'source' ? 'target' : 'source' ]
68
+ const oppositeBounds = fromHandleBounds ?. [ handleType === 'source' ? 'target' : 'source' ] || [ ]
69
+ handleBounds = [ ...handleBounds , ...oppositeBounds ] || oppositeBounds
69
70
}
70
71
71
72
if ( ! handleBounds ) {
You can’t perform that action at this time.
0 commit comments