chore(nodes): use computed pos z for zIndex

This commit is contained in:
bcakmakoglu
2022-06-03 20:53:34 +02:00
committed by Braks
parent 2bd15c1710
commit 586e8bfe41

View File

@@ -174,7 +174,7 @@ export default {
getClass,
]"
:style="{
zIndex: node.computedPosition.z ? node.computedPosition.z : node.selected ? 1000 : 0,
zIndex: node.computedPosition.z ?? 0,
transform: `translate(${node.computedPosition.x}px,${node.computedPosition.y}px)`,
pointerEvents: selectable || draggable ? 'all' : 'none',
...getStyle,