From ce532cc403c721e8fe2644720433e495afd2b8aa Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 24 Oct 2022 09:38:07 +0100 Subject: [PATCH] Improve client grid DND event handling --- packages/client/src/components/ClientApp.svelte | 2 ++ packages/client/src/components/Component.svelte | 1 - packages/client/src/components/app/Grid.svelte | 7 +------ .../components/preview/GridDNDHandler.svelte | 17 +++++++++-------- packages/client/src/stores/builder.js | 4 ++-- 5 files changed, 14 insertions(+), 17 deletions(-) diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte index 537e963ff3..2fb0a92dab 100644 --- a/packages/client/src/components/ClientApp.svelte +++ b/packages/client/src/components/ClientApp.svelte @@ -30,6 +30,7 @@ import HoverIndicator from "components/preview/HoverIndicator.svelte" import CustomThemeWrapper from "./CustomThemeWrapper.svelte" import DNDHandler from "components/preview/DNDHandler.svelte" + import GridDNDHandler from "components/preview/GridDNDHandler.svelte" import KeyboardManager from "components/preview/KeyboardManager.svelte" import DevToolsHeader from "components/devtools/DevToolsHeader.svelte" import DevTools from "components/devtools/DevTools.svelte" @@ -196,6 +197,7 @@ {/if} {#if $builderStore.inBuilder} + {/if} diff --git a/packages/client/src/components/Component.svelte b/packages/client/src/components/Component.svelte index 669cc8afdc..c59ef050cd 100644 --- a/packages/client/src/components/Component.svelte +++ b/packages/client/src/components/Component.svelte @@ -219,7 +219,6 @@ return } else { lastInstanceKey = instanceKey - ephemeralStyles = null } // Pull definition and constructor diff --git a/packages/client/src/components/app/Grid.svelte b/packages/client/src/components/app/Grid.svelte index 7e2ec68627..8348a3ba91 100644 --- a/packages/client/src/components/app/Grid.svelte +++ b/packages/client/src/components/app/Grid.svelte @@ -1,9 +1,8 @@