-
Notifications
You must be signed in to change notification settings - Fork 1k
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 is increasing on every close and open action for Dialog component #7041
Comments
This is by design as every time the dialog opens it must be on top so its z-index is increased. All the PrimeTek libs work the same way. What is your real issue? |
@melloware When the z-index is reached more than 2103, it does not display dropdowns properly. Please refer to this updated demo Please provide a workaround for this and update the above demo. |
cc @navedqb |
I'm facing the same issue. I guess that the way it was intended to work was to set the z-index just higher by 1 in relation to the current highest on the page. The actual implementation just keeps growing each Dialog opening by 1, reaching very high values if the page is not refreshed in a while. |
Converted this issue to a BUG |
Describe the bug
Dialog component increasing z-index by 1 on every close and open action. this issue stopped other components(e.g. dropdown list item) from rendering inside the dialog component.
Reproducer
https://stackblitz.com/edit/bp4c3k?file=src%2FApp.jsx
System Information
"primereact": "^10.8.2",
Steps to reproduce the behavior
Expected behavior
z-index of dialog HTML code should not increase by 1 on every close and open action
The text was updated successfully, but these errors were encountered: