Skip to content

fix(select): remove aria-controls when overlay is closed#8571

Open
lbineau wants to merge 1 commit into
primefaces:masterfrom
lbineau:fix/select-aria-controls-when-closed
Open

fix(select): remove aria-controls when overlay is closed#8571
lbineau wants to merge 1 commit into
primefaces:masterfrom
lbineau:fix/select-aria-controls-when-closed

Conversation

@lbineau
Copy link
Copy Markdown

@lbineau lbineau commented May 11, 2026

aria-controls should only reference the listbox when it exists in the DOM. Setting it unconditionally causes accessibility violations when the overlay is hidden — the referenced element is not present.

Follows the same pattern applied to other overlay components in #8162, where non editable Select was missed.

Defect Fix

Closes #8586

Screen.Recording.2026-05-11.at.16.02.59.mov

aria-controls should only reference the listbox when it exists in the DOM.
Setting it unconditionally causes accessibility violations (referenced element
not present) when the overlay is hidden.

Follows the same pattern applied to other overlay components in primefaces#8162.
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

Successfully merging this pull request may close these issues.

Select: Unable to determine if aria-controls referenced ID exists on the page while using aria-haspopup: aria-controls

1 participant