fix(core): use connecting handle to update connection (#1996)

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2025-12-17 10:27:28 +01:00
parent 1b15e24bb3
commit 474e830d08
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -244,6 +244,7 @@ export function useHandle({
}
const connectingHandle = closestHandle ?? result.toHandle
updateConnection(
connectingHandle && isValid
? rendererPointToPoint(
@@ -254,7 +255,7 @@ export function useHandle({
viewport.value,
)
: connectionPosition,
result.toHandle,
connectingHandle,
getConnectionStatus(!!connectingHandle, isValid),
)