Skip to content

[Android] Focus is removed from TextInput when Talkback is enabled #12205

Closed
@oargaruna

Description

@oargaruna

Description

Our project is a hybrid of React Native modules and native UI. We are adding accessibility to our App and are hitting a weird issue with Talkback in TextInput:

If there is any clickable element before a TextInput in the view hierarchy, double tapping to add focus to the TextInput using Talkback sends the focus to the clickable element before it.

Reproduction

I have been able to reproduce the bug in a sample app: https://github.com/oargaruna/TextInputTalkback

  1. Deploy the App on an Android device
  2. Enable Talkback (from Settings -> Accessibility) and open the Sample App
  3. Tap once on the TextInput to give it Talkback focus
  4. Tap twice to try to get the keyboard to come up

We expect the keyboard to show up with focus on the TextInput, but the focus jumps to the TouchableOpacity element defined before it.

If the TouchableOpacity element is removed, this behaviour is not reproducible.

Additional Information

  • React Native version: 0.41.1
  • Platform: Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityBugComponent: TextInputRelated to the TextInput component.Platform: AndroidAndroid applications.Ran CommandsOne of our bots successfully processed a command.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions