From 7aa337f7d2bc7e8b8ce2354a1bad0e1f57cda4f8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 9 Nov 2021 15:24:13 +0000 Subject: [PATCH] Disable links when in builder preview --- packages/client/src/utils/linkable.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/client/src/utils/linkable.js b/packages/client/src/utils/linkable.js index 4258f6b562..d82a53474b 100644 --- a/packages/client/src/utils/linkable.js +++ b/packages/client/src/utils/linkable.js @@ -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)