StreakYC / react-draggable-list

React component for a list of draggable collapsible items
MIT License
319 stars 48 forks source link

unsetZIndex does not work. #21

Closed lukaswelinder closed 7 years ago

lukaswelinder commented 7 years ago

Only setting the z-index to auto is not preventing the list items from creating a stacking context.

Relatively or absolutely positioned elements create their own stacking context, since the parent and item position is set to relative when not animating, they are still creating a stacking context.

Macil commented 7 years ago

According to that page, relatively or absolutely positioned elements with z-index:auto do not create a stacking context, which matches my experience.

positioned (absolutely or relatively) with a z-index value other than "auto",

If you have an example where it seems like the right thing isn't happening, I'd be happy to help with it.