Skip to content

Flutter Web (Chrome browser) - TextFormField losing focus after it goes to background, for example on a tab switch #178109

Description

@vikasdwivedi-kuhoo

Steps to reproduce

Start typing inside a TextFormField, go to a different tab and come back, it will lose focus.

Expected results

TextFormField should regain focus after the Web application is in foreground. This started happening after we updated to 3.35.0

Actual results

TextFormField loses focus

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsc: regressionIt was better in the past than it is nowf: focusFocus traversal, gaining or losing focusfound in release: 3.35Found to occur in 3.35found in release: 3.38Found to occur in 3.38has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions