Skip to content

TextInput: the field's wrapper is an extra keyboard stop before the input on web and Android #5281

Open

Description

@Doberjohn

Current behaviour

Tab stops on the field's wrapper before it reaches the input:

  • On web, the wrapper is a div with tabindex="0" and no role or name, and nothing shows that it has focus.
  • On Android, with a hardware keyboard, the wrapper is a focusable view with no description. TalkBack reads the field's visible texts there, for example "Label, xyz, Supporting text, 3/100" for a field with a counter, plus the clear icon's glyph when it has one.

The next Tab reaches the input. 6.0.0-alpha.3 does the same. On web, tabIndex={-1} on the wrapper removes the stop; focusable={false} doesn't.

Expected behaviour

One stop per field: the input.

How to reproduce?

  1. Render a button followed by <TextInput label="Label" supportingText="Supporting text" counter maxLength={100} />.
  2. Focus the button and press Tab: on web, or on Android with a hardware keyboard (with TalkBack on to hear it).

Your Environment

software version
android 13 (emulator), TalkBack 14.2
web Chromium
react-native 0.88.1 (New Architecture)
react-native-web 0.21.4
react-native-paper main (fbf9006)
expo sdk 58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions