Fix selection indicator appearing while dragging

This commit is contained in:
Andrew Kingston 2022-10-24 13:24:19 +01:00
parent 7fc291ef8d
commit 6615027403
1 changed files with 1 additions and 6 deletions

View File

@ -6,11 +6,6 @@
let componentId
$: zIndex = componentId === $builderStore.selectedComponentId ? 900 : 920
$: {
if ($dndIsDragging) {
componentId = null
}
}
const onMouseOver = e => {
// Ignore if dragging
@ -49,7 +44,7 @@
</script>
<IndicatorSet
{componentId}
componentId={$dndIsDragging ? null : componentId}
color="var(--spectrum-global-color-static-blue-200)"
transition
{zIndex}