Skip to content

[Accessibility]: async select doesn't render aria-results accessibility text when no results found #6091

@kasparsuvi1

Description

@kasparsuvi1

Hey, i think there is issue with async select. As when no options is returned from loadOptions function the ariaLiveMessages.onFilter doesn't get triggered.

Without async loading there is no issue, when no results are found, the correct aria-text gets rendered in html:
Image

When using async loading, also recreatable in offical docs example there will be never rendered 0 results.

reproduction

  1. Open asynx example, type "test" to input.
  2. id="aria-results" span is empty

Same works on not async example -> id="aria-results" span get children of "0 results available for search term test.".

Other

Also can't overwrite it because ariaLiveMessages.onFilter is not getting called when async loadOptions callback return empty array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions