Skip to content

Commit ddff592

Browse files
webfilteredgithub-actions
andauthored
Fix new link follows pointer until menu closed (#3628)
Co-authored-by: github-actions <[email protected]>
1 parent 8491ca9 commit ddff592

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
-12.2 KB
Loading

src/components/searchbox/NodeSearchBoxPopover.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const cancelNextReset = (e: CustomEvent<CanvasPointerEvent>) => {
254254
e.preventDefault()
255255
256256
const canvas = canvasStore.getCanvas()
257-
canvas._highlight_pos = [e.detail.canvasX, e.detail.canvasY]
257+
canvas.linkConnector.state.snapLinksPos = [e.detail.canvasX, e.detail.canvasY]
258258
useEventListener(canvas.linkConnector.events, 'reset', preventDefault, {
259259
once: true
260260
})
@@ -291,7 +291,6 @@ const reset = () => {
291291
if (disconnectOnReset) canvas.linkConnector.disconnectLinks()
292292
293293
canvas.linkConnector.reset()
294-
canvas._highlight_pos = undefined
295294
canvas.setDirty(true, true)
296295
}
297296

0 commit comments

Comments
 (0)