Disable links when in builder preview
This commit is contained in:
parent
610ba92bac
commit
7aa337f7d2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue