Skip to content

fix(selectlist-item): SITES-24721 sync aria-selected after render (WC…AG 4.1.2)#409

Open
StoianLucian wants to merge 1 commit intomasterfrom
SITES-24721
Open

fix(selectlist-item): SITES-24721 sync aria-selected after render (WC…AG 4.1.2)#409
StoianLucian wants to merge 1 commit intomasterfrom
SITES-24721

Conversation

@StoianLucian
Copy link
Copy Markdown
Contributor

When selection is applied before render() sets role="option", the selected setter runs without a role attribute and skips aria-selected; the subsequent early return prevents updating after role is assigned. Call _syncAriaSelected() after render so listbox options expose state to assistive technology.

Skill-Version: cursor-toolkit/commit-and-pr v0.2.1
Made-with: Cursor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.

…AG 4.1.2)

When selection is applied before render() sets role="option", the selected
setter runs without a role attribute and skips aria-selected; the subsequent
early return prevents updating after role is assigned. Call _syncAriaSelected()
after render so listbox options expose state to assistive technology.

Skill-Version: cursor-toolkit/commit-and-pr v0.2.1
Made-with: Cursor
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.

1 participant