Skip to content

[CP] Regression: ability to call nextFocus() on a node to focus its descendant #137071

Closed
@tvolkert

Description

@tvolkert

Issue Link

#134854

Commit Hash

e869144

Target

beta

PR Link

#137630

Changelog Description

FocusNode.nextFocus() can be used to focus a node that's a descendant of the node on which the method is called. This change fixes a regression whereby that functionality didn't work under certain circumstances.

Impacted Users

all Flutter devs

Impact Description

Applications that relied on the FocusNode.nextFocus() API would be at risk of having the focus traversal not working as expected. For example, the focus might not change, or it might focus the wrong node.

Workaround

No

Risk

low

Test Coverage

yes

Validation Steps

The cherrypick includes a new test case that validates the fix, so make sure all tests pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cp: approvedApproved cherry-pick requestcp: merge-to-betaCherry-picks that should be merged to betacp: reviewCherry-picks in the review queue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions