Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Unable to set autoComplete prop on input #354

Open

Description

@daveaspinall

I'd like to be able to define the value of the autoComplete prop added to the input to improve the autofill feature, and in some cases disable it.

Should adding the autoComplete prop overwrite the default autoComplete: 'off' value?

Chrome ignores the "off" value.

Activity

  1. peterlcullen commented on Oct 8, 2018

    @peterlcullen

    You can use the renderInput prop to override this. Here's an example...

    <Autocomplete
      // .... all the props you would normally use 
      items={items}
      renderItem={itemRenderer}
      
      // then add this, so you can override `autoComplete`
      renderInput={props => {
        return <input {...props} autoComplete="whatever-you-want" />;
      }}
    />
  2. mousemke commented on Dec 10, 2018

    @mousemke

    chrome has changed and no longer respects the off that is the current default and should be set to new password as default (and hopefully accept props anyway if ppl want to change it. there is even a fix PR open. Any hope of these being merged.

    (yes i realize there is a work around, but it is fixed.... just waiting to merge)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions