Skip to content

Commit

Permalink
fix(visual-editing): prevent always activating elements on registrati…
Browse files Browse the repository at this point in the history
…on (#2100)
  • Loading branch information
rdunk authored Nov 6, 2024
1 parent c139267 commit 018f43a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/visual-editing/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,10 @@ export function createOverlayController({
sanity,
dragDisabled: !!element.getAttribute('data-sanity-drag-disable'),
})
activateElement(sanityNode)

if (activated) {
activateElement(sanityNode)
}
}

function updateElement({elements, sanity}: ResolvedElement) {
Expand Down

0 comments on commit 018f43a

Please sign in to comment.