Skip to content

[Web]: Click outside of text field should unfocus  #32433

@kunit1

Description

@kunit1

When trying the gallery example app in flutter_web I noticed that clicking away from a focused text field does not cause it to lose focus.

It is standard behaviour on the web that when a text field is focused and the mouse is clicked on a blank space on the page the field is unfocused.

Steps to reproduce on Chrome browser with a mouse and keyboard (e.g. on a desktop):

  1. Click on text field - Field is now in focus with cursor visible
  2. Click outside of text field on a blank space (not another text field) - Text field is still in focus

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: desktopRunning on desktopc: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions