Skip to content

TextField semantics are gone when being disabled #59402

Closed

Description

@mehmetf

b/158725443
b/239596152

This might be WAI but it is inconsistent.

Dropdown buttons still have a Semantic widget associated with them when they are disabled but it seems we remove the Semantic widget when TextField is disabled.

Activity

  1. added
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Jun 15, 2020
  2. HansMuller commented on Jun 15, 2020

    @HansMuller
    Contributor
  3. chunhtai commented on Jun 15, 2020

    @chunhtai
    Contributor

    This is a known issue, the problem is that the TextField uses IgnorePointer to disable pointer interaction when the textfield is disabled, and the ignore pointer will unfortunately disable the semantics. I have a draft pr that exploring the possible way to fix it #37199, but it was abandon due to low priority. Does the read only work in your case? The difference between them is the read only textfield can still be selected.

    The dropdown button works differently because it only has one gesture detector, we can easily disable it by detaching the callback. The Textfield however has three to four layer of gesture detector across widget and render object, we figure it will be easier to just use ignorePointer. Maybe that is not a wise decision.

  4. self-assigned this
    on Jun 15, 2020
  5. added
    P1High-priority issues at the top of the work list
    on Jun 15, 2020
  6. chunhtai commented on Jun 18, 2020

    @chunhtai
    Contributor

    @mehmetf Is fixing the semantics necessary to resolve the issue given my comment above?

  7. mehmetf commented on Jun 19, 2020

    @mehmetf
    ContributorAuthor

    @chunhtai I pinged the customer. However, if you want a speedier response from Googlers, I suggest pinging on the internal bug.

  8. removed their assignment
    on Jul 16, 2020
  9. chunhtai commented on Jul 16, 2020

    @chunhtai
    Contributor

    Will get back to this once i have time

  10. self-assigned this
    on Jul 24, 2020
  11. removed their assignment
    on Jun 4, 2021
  12. self-assigned this
    on Feb 9, 2023
  13. github-actions commented on Apr 21, 2023

    @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.

  14. locked as resolved and limited conversation to collaborators on Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: text inputEntering text in a text field or keyboard related problemsc: API breakBackwards-incompatible API changescustomer: money (g3)frameworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packages

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions