From 1e786a9b088e048382dae5275df92b00bd8b747c Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 18 May 2023 09:20:39 +0200 Subject: [PATCH] chore(core): cleanup --- packages/core/src/utils/handle.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/utils/handle.ts b/packages/core/src/utils/handle.ts index 22020389..700c3da0 100644 --- a/packages/core/src/utils/handle.ts +++ b/packages/core/src/utils/handle.ts @@ -126,7 +126,10 @@ export function isValidHandle( // because it could be that the center of another handle is closer to the mouse pointer than the handle below the cursor const handleToCheck = handleBelow?.classList.contains('vue-flow__handle') ? handleBelow : handleDomNode - const result = defaultValidHandleResult() + const result = { + ...defaultValidHandleResult(), + handleDomNode: handleToCheck, + } if (handleToCheck) { const handleType = getHandleType(undefined, handleToCheck)