Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

fix: unused zIndexes on element update#217

Open
floriegl wants to merge 1 commit into
primefaces:mainfrom
floriegl:fix-unused-zindexes-on-element-update
Open

fix: unused zIndexes on element update#217
floriegl wants to merge 1 commit into
primefaces:mainfrom
floriegl:fix-unused-zindexes-on-element-update

Conversation

@floriegl

@floriegl floriegl commented Jan 22, 2026

Copy link
Copy Markdown

Fixes primefaces/primevue#8393

If an element, which wants to set a new zIndex, I see no reason to not remove it from the zIndexes. This behavior makes sense for example in the PrimeVue toast component, as it should increase its zIndex if new messages get added (move in front of a dialog, if the dialog triggers toast messages while open), but not leave any unused ones behind in the zIndexes.

@floriegl
floriegl marked this pull request as ready for review January 22, 2026 01:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toast creates unused zIndexes

1 participant