Skip to content

AutoComplete: screen readers output the last menu item "MoreText" as undefined. #14183

@prusuteodora

Description

@prusuteodora

Describe the bug

In the autoComplete component, the last item in the menu that indicates that there are more items is rendered as undefined by the screen readers.

Reproducer

Go to any autoComplete component that has a maxResult attribute set to a value and that has the moreText attribute to have a value, and when read with the screen reader it will be rendered as undefined. There is also an example in the primefaces showcase.

Image

Expected behavior

The moreText attribute value is read by the screen reader inside the autocomplete component that has an maxResults attribute with it's value set.(ex. by adding aria-label)

PrimeFaces edition

None

PrimeFaces version

14.0.12

Theme

No response

JSF implementation

Mojarra

JSF version

4.0

Java version

17.0.9

Browser(s)

No response

Metadata

Metadata

Assignees

Labels

accessibilityWCAG or ARIA related issues

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions