Sarai-WMDE added a comment.
We could modify the component to match the suggestion made in the ticket's
description:
> selecting the top most match for the user.
This would then imply replacing the selection behavior of the Lookup to make
it automatic instead of manual. Borrowing from the design patterns described by
the W3C in the WAI-ARIA Authoring Practices for a similar component
(combobox)...:
> List autocomplete with automatic selection: When the popup is triggered, it
presents suggested values that complete or logically correspond to the
characters typed in the textbox, and the first suggestion is automatically
highlighted as selected. The automatically selected suggestion becomes the
value of the textbox when the combobox loses focus unless the user chooses a
different suggestion or changes the character string in the textbox.
To complement this behavior, validation should be displayed when the entered
text doesn't match any of the options (i.e. there's no matching suggestion, so
the automatic selection cannot be made).
TASK DETAIL
https://phabricator.wikimedia.org/T289985
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Sarai-WMDE
Cc: Sarai-WMDE, Michael, Aklapper, Charlie_WMDE, Invadibot, maantietaja,
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer,
_jensen, rosalieper, Scott_WUaS, Volker_E, Wikidata-bugs, aude,
Lydia_Pintscher, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org