Fix stale hover indiciator
This commit is contained in:
parent
4dc6b869a8
commit
24cc71267c
|
@ -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 @@
|
|||
</script>
|
||||
|
||||
<IndicatorSet
|
||||
componentId={$dndIsDragging ? null : componentId}
|
||||
{componentId}
|
||||
color="var(--spectrum-global-color-static-blue-200)"
|
||||
transition
|
||||
{zIndex}
|
||||
|
|
Loading…
Reference in New Issue