Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
17.0.0-rc-1, 16.10.3, 18.9.0
-
Unknown
-
-
1.3.1 Info and Relationships
Description
Steps to reproduce
- Open a page with a suggest picker, e.g. the Page picker of the Include macro dialog (edit a page with the WYSIWYG editor and insert the Include macro).
- Type a text, move through the suggestions with the arrow keys, then pick a suggestion other than the last one highlighted, or close the list without picking.
- Look at the accessibility tree next to the picker (e.g. in the Accessibility pane of the browser's developer tools), or read the field with a screen reader.
Actual result
The live region that the suggest pickers add after their input (a span.sr-only with aria-live="assertive") still holds the text of the last highlighted suggestion, e.g. a page that wasn't picked next to the picked one. Screen readers read it as text next to the field, although it has nothing to do with the field's value.
Expected result
The live region is emptied once the list of suggestions closes or a value is picked, so that it only announces the highlighted suggestion while the list is open.
Cause
xwiki.selectize.js (the xwiki-selectize module, which wraps Tom Select since XWIKI-24088) overrides setActiveOption to write the text of the active option into liveRegion (added by XWIKI-22492), and nothing clears it afterwards.
Environment
Seen on XWiki 18.9.0 with Chrome; the same code is on master.
PS: This post was co-written with Claude Code.
Attachments
Issue Links
- relates to
-
XWIKI-25858 Screen readers list an unnamed field next to each suggest picker
-
- Open
-
-
XWIKI-22492 Livedata filter options are misread
-
- Closed
-