Skip to content

[0.80] Fix broken focus behavior for TextInput in older Android versions (< 9) #952

@joevilches

Description

@joevilches

Target Branch

0.80

Link to commit or PR to be picked

facebook/react-native#51462

Description

facebook/react-native#48547 introduced a bug on older Android versions (< 9). The nature of this bug is described in facebook/react-native#51072. The TLDR is that the first TextInput's would not be able to be blurred (use focus) once they gained focus. This is because of Android behavior that attempts to focus the first focusable View in the hierarchy after clearing focus. This is supposed to only happen not in touch mode (using hardware keyboard), but it happens in touch mode nevertheless. This PR uncovered that issue.

The PR to be picked is the fix.

I am a bit confused about how this pick works actually:
* Do I need to create a separate pick for 0.80? (fix slated for 0.81)
* The nature of this file surely changed a lot between now and then, is there a merge conflict to resolve? If so am I needed to ensure its accurate?

EDIT: see @cortinico's response below

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions