Skip to content

Commit

Permalink
Merge pull request #446 from BinaryStudioAcademy/task/OV-441-scene-ov…
Browse files Browse the repository at this point in the history
…erlap

OV-411: The selected scene should overlap others when stretched
  • Loading branch information
nikita-remeslov authored Sep 27, 2024
2 parents 1bf74fc + aabec0d commit 1a2c462
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Item: React.FC<Properties> = ({
{...(type !== RowNames.BUTTON && listeners)}
{...attributes}
style={itemStyle}
zIndex={isDragging ? '100' : 'auto'}
zIndex={isDragging || selectedItem?.id === id ? '100' : 'auto'}
onClick={onClick}
data-id={id}
>
Expand Down

0 comments on commit 1a2c462

Please sign in to comment.