docs: cleanup examples

This commit is contained in:
braks
2024-06-06 10:45:38 +02:00
committed by Braks
parent 82d99915d3
commit a220161876
2 changed files with 2 additions and 2 deletions
@@ -99,7 +99,7 @@ watch([() => props.targetY, () => props.targetX], (_, __, onCleanup) => {
}
if (closestHandle) {
const el = document.querySelector(`[data-handleid='${closestHandle.id}']`)
const el = document.querySelector(`[data-nodeid='${closestNode.node.id}']`)
const prevStyle = el.style.backgroundColor
el.style.backgroundColor = canSnap.value ? SNAP_HIGHLIGHT_COLOR : HIGHLIGHT_COLOR