From ca8fe0e9fde895e889f9191a2e4bbc8f1e7fc014 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 21 Oct 2022 17:51:25 +0100 Subject: [PATCH] Fix stale hover indiciator --- .../client/src/components/preview/HoverIndicator.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/preview/HoverIndicator.svelte b/packages/client/src/components/preview/HoverIndicator.svelte index 230edeb70c..7d7d3e0540 100644 --- a/packages/client/src/components/preview/HoverIndicator.svelte +++ b/packages/client/src/components/preview/HoverIndicator.svelte @@ -4,7 +4,13 @@ import { builderStore, dndIsDragging } from "stores" let componentId + $: zIndex = componentId === $builderStore.selectedComponentId ? 900 : 920 + $: { + if ($dndIsDragging) { + componentId = null + } + } const onMouseOver = e => { // Ignore if dragging @@ -43,7 +49,7 @@