Disable links when in builder preview

This commit is contained in:
Andrew Kingston 2021-11-09 15:24:13 +00:00
parent 610ba92bac
commit 7aa337f7d2
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ import { builderStore } from "stores"
export const linkable = (node, href) => { export const linkable = (node, href) => {
if (get(builderStore).inBuilder) { if (get(builderStore).inBuilder) {
node.onclick = e => {
e.preventDefault()
}
return return
} }
link(node, href) link(node, href)