Fix selection indicator appearing while dragging
This commit is contained in:
parent
d358beb3be
commit
be10c64984
|
@ -6,11 +6,6 @@
|
||||||
let componentId
|
let componentId
|
||||||
|
|
||||||
$: zIndex = componentId === $builderStore.selectedComponentId ? 900 : 920
|
$: zIndex = componentId === $builderStore.selectedComponentId ? 900 : 920
|
||||||
$: {
|
|
||||||
if ($dndIsDragging) {
|
|
||||||
componentId = null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const onMouseOver = e => {
|
const onMouseOver = e => {
|
||||||
// Ignore if dragging
|
// Ignore if dragging
|
||||||
|
@ -49,7 +44,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<IndicatorSet
|
<IndicatorSet
|
||||||
{componentId}
|
componentId={$dndIsDragging ? null : componentId}
|
||||||
color="var(--spectrum-global-color-static-blue-200)"
|
color="var(--spectrum-global-color-static-blue-200)"
|
||||||
transition
|
transition
|
||||||
{zIndex}
|
{zIndex}
|
||||||
|
|
Loading…
Reference in New Issue