Page MenuHomePhabricator

TextInput: Add public blur() method
Closed, ResolvedPublic1 Estimated Story Points

Description

The TextInput element currently exposes a public focus() method which can be used by the parent for programmatic focus management (something we rely on to provide a better keyboard navigation experience to the user for certain features).

We should introduce a similar public blur() method which would be used in similar situations. In MediaSearch, the AutocompleteSearchInput component (the main search bar) needs to be able to both focus and blur the inner input element in response to various user actions (selecting/submitting a search term, etc).

Event Timeline

Restricted Application triaged this task as High priority. · View Herald TranscriptMay 24 2023, 7:51 PM
Restricted Application removed a project: Patch-For-Review. · View Herald Transcript

Change 922935 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[design/codex@main] TextInput: expose a public blur() method

https://gerrit.wikimedia.org/r/922935

egardner set the point value for this task to 1.May 25 2023, 4:48 AM

Change 922935 merged by jenkins-bot:

[design/codex@main] TextInput: expose a public blur() method

https://gerrit.wikimedia.org/r/922935

Change 927786 had a related patch set uploaded (by Eric Gardner; author: Eric Gardner):

[mediawiki/core@master] Update Codex from v0.11.0 to v0.12.0

https://gerrit.wikimedia.org/r/927786

Test wiki created on Patch demo by ATomasevich (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/8ca78d2715/w

Change 927786 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.11.0 to v0.12.0

https://gerrit.wikimedia.org/r/927786

Test wiki on Patch demo by EGardner (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/b86f0bbdae/w/

Test wiki on Patch demo by EGardner (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/595871be8a/w/

Test wiki on Patch demo by ATomasevich (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/8ca78d2715/w/

Test wiki on Patch demo by EGardner (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/14bd7d0695/w/