Skip to content

Chrome may override disabled autoComplete in TextFields #1244

@marina101

Description

@marina101

Issue summary

Chrome is known to sometimes ignore the autoComplete=false setting on inputs: https://bugs.chromium.org/p/chromium/issues/detail?id=370363#c7

The workaround is to set it to a string field named differently from the ones autocomplete looks for:
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

Expected behavior

TextField should be able to handle a string prop as well as a boolean prop for autocomplete, and then set autocomplete to the value of the string if the prop is a string.

Actual behavior

TextField only accepts boolean or null values.

Specifications

  • Are you using the React components? (Y/N): Y
  • Polaris version number: 3.10.0
  • Browser: Chrome Version 72.0.3626.121 (Official Build) (64-bit)
  • Device: mac
  • Operating System: Mojave 10.14.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken and not working as intended in the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions