docs: cleanup examples

This commit is contained in:
braks
2024-06-03 20:39:57 +02:00
committed by Braks
parent 82d99915d3
commit a220161876
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ watch([() => props.targetY, () => props.targetX], (_, __, onCleanup) => {
})
if (closestHandle) {
const el = document.querySelector(`[data-handleid='${closestHandle.id}']`) as HTMLElement
const el = document.querySelector(`[data-nodeid='${closestNode.node.id}']`) as HTMLElement
const prevStyle = el.style.backgroundColor
el.style.backgroundColor = canSnap.value ? SNAP_HIGHLIGHT_COLOR : HIGHLIGHT_COLOR