Skip to content

Commit a220161

Browse files
committed
docs: cleanup examples
1 parent 82d9991 commit a220161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/examples/connection-radius/SnappableConnectionLine.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ watch([() => props.targetY, () => props.targetX], (_, __, onCleanup) => {
9999
}
100100
101101
if (closestHandle) {
102-
const el = document.querySelector(`[data-handleid='${closestHandle.id}']`)
102+
const el = document.querySelector(`[data-nodeid='${closestNode.node.id}']`)
103103
104104
const prevStyle = el.style.backgroundColor
105105
el.style.backgroundColor = canSnap.value ? SNAP_HIGHLIGHT_COLOR : HIGHLIGHT_COLOR

examples/vite/src/SnapHandle/SnappableConnectionLine.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ watch([() => props.targetY, () => props.targetX], (_, __, onCleanup) => {
7575
})
7676
7777
if (closestHandle) {
78-
const el = document.querySelector(`[data-handleid='${closestHandle.id}']`) as HTMLElement
78+
const el = document.querySelector(`[data-nodeid='${closestNode.node.id}']`) as HTMLElement
7979
8080
const prevStyle = el.style.backgroundColor
8181
el.style.backgroundColor = canSnap.value ? SNAP_HIGHLIGHT_COLOR : HIGHLIGHT_COLOR

0 commit comments

Comments
 (0)