Skip to content

Input grabs focus too aggressively #189

Closed

Description

@FlutterIssues

Issue by Hixie
Wednesday Oct 07, 2015 at 21:26 GMT
Originally opened as https://github.com/flutter/engine/issues/1530


It should use gestures to decide when to grab focus, probably when a Tap gesture commits (possibly before onTap, but certainly not when you might still scroll).

You can see this if you put a bunch of input fields in a list and scroll the list. Every time you scroll, you focus a new widget.

Activity

  1. added this to the milestone on Nov 9, 2015
  2. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Nov 9, 2015
  3. FlutterIssues commented on Nov 9, 2015

    @FlutterIssues
    Author

    Comment by Hixie
    Monday Oct 12, 2015 at 21:07 GMT


    The problem is the use of a Listener in _InputState.buildContent().

  4. added
    a: text inputEntering text in a text field or keyboard related problems
    p: material_uimaterial_ui package in flutter/packages
    on Dec 26, 2015
  5. self-assigned this
    on Dec 28, 2015
  6. added a commit that references this issue on Dec 28, 2015
    b1dae4c
  7. github-actions commented on Aug 17, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packageswaiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions