Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z-index not properly restored after drag #7

Open
zenslug opened this issue Jan 18, 2010 · 1 comment
Open

z-index not properly restored after drag #7

zenslug opened this issue Jan 18, 2010 · 1 comment

Comments

@zenslug
Copy link

zenslug commented Jan 18, 2010

I have a draggable div that is postion: absolute, width/height: 300px, z-index: 100. Underneath I have a modal shield (a width/height: 100% layer of black with 50% opacity). The point is to allow the draggable div to be moved around the screen while keeping the modal shield at a lower z-index than the block. This prevents the rest of the underlying page from getting any clicks/interaction.

What happens:
After dragging the element around the page, once the drag has finished, the draggable div ends up with a z-index of 0. I would expect the z-index to be restored to its original state. By setting the parameter "z-index: 100", this only affects the z-index during drag. As a separate issue, setting the onEnd callback to set the z-index causes other issues (the drag never ends).

@Kedarnath-Rothe
Copy link

Please assign this issue to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants