Fix selection indicator appearing while dragging
This commit is contained in:
parent
7fc291ef8d
commit
6615027403
1 changed files with 1 additions and 6 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue