Disable links when in builder preview

This commit is contained in:
Andrew Kingston 2021-11-09 15:24:13 +00:00
parent 53762ef713
commit 831f3b543f
1 changed files with 3 additions and 0 deletions

View File

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