From dc8c22e0184402078cc09a590d44a218aac3a21b Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 9 Jun 2020 11:44:33 +0100 Subject: [PATCH] preventDefault on clicks, in preview --- .../components/userInterface/AppPreview/iframeTemplate.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js index c7b7aeebcc..3d305f1c1d 100644 --- a/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js +++ b/packages/builder/src/components/userInterface/AppPreview/iframeTemplate.js @@ -53,6 +53,11 @@ export default ` let styles let selectedComponentStyle + document.addEventListener("click", function(e) { + e.preventDefault() + e.stopPropagation() + return false; + }, true) import('/_builder/budibase-client.esm.mjs') .then(module => {