1
0
Fork 0
mirror of synced 2024-07-02 13:01:09 +12:00

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

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)