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({
6262 const handleType = connectionStartHandle . value . type
6363
6464 const fromHandleBounds = fromNode . value . handleBounds
65- let handleBounds = fromHandleBounds ?. [ handleType ]
65+ let handleBounds = fromHandleBounds ?. [ handleType ] || [ ]
6666
6767 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
6970 }
7071
7172 if ( ! handleBounds ) {
You can’t perform that action at this time.
0 commit comments