-
Notifications
You must be signed in to change notification settings - Fork 30.4k
Navigator.Pop cause most recent focus node to regain focus even if not focused when new page was opened #145155
Copy link
Copy link
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusf: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.21Found to occur in 3.21Found to occur in 3.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyplatform-iosiOS applications specificallyiOS applications specificallyteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: regressionIt was better in the past than it is nowIt was better in the past than it is nowf: focusFocus traversal, gaining or losing focusFocus traversal, gaining or losing focusf: routesNavigator, Router, and related APIs.Navigator, Router, and related APIs.found in release: 3.19Found to occur in 3.19Found to occur in 3.19found in release: 3.21Found to occur in 3.21Found to occur in 3.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specificallyAndroid applications specificallyplatform-iosiOS applications specificallyiOS applications specificallyteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Steps to reproduce
Issue started with upgrade to Flutter 3.19.0 and can't be reproduced with 3.16.9
Expected results
No focus on TextField when returning to page
Since TextField did not have focus when new page was opened, expecting it not to gain focus from routing changes
Actual results
TextField gains focus and keyboard showing
Code sample
Code sample
Screenshots or Video
Video demonstration
Flutter Doctor output
Doctor output