question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable browser autocomplete for Input fields

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

I have custom autocompletion feature within my web application that works when I type in <Input.Search /> component.

However Safari and other browser tries to do additional autocomplete when I type in React And Design <Input /> field.

I would like to be able to disable browser autocomplete by setting autocomplete=“off” (see https://stackoverflow.com/questions/2530/how-do-you-disable-browser-autocomplete-on-web-form-field-input-tag ).

This issue is quite similar to https://github.com/ant-design/ant-design/issues/7659

What does the proposed API look like?

<Input autocomplete={false} /> where the autocompleted property will be true by default

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
avpaulcommented, May 26, 2021

Any plans to have autocomplete on <Select /> components? When you set showSearch={true} browsers will try to autocomplete/suggest/fill the search input

16reactions
yesmeckcommented, Apr 4, 2019

It’s already support, try <Input autoComplete="off" />

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn off form autocompletion - Web security | MDN
Setting autocomplete="off" on fields has two effects: ... If a browser keeps on making suggestions even after setting autocomplete to off, then ...
Read more >
How to Disable the Browser Autocomplete and Autofill on ...
To disable the autocomplete of text in forms, use the autocomplete attribute of <input> and <form> elements. You'll need the "off" value of...
Read more >
How do you disable browser autocomplete on web form field ...
Just set autocomplete="off" . There is a very good reason for doing this: You want ...
Read more >
How To Turn Off Autocomplete for Input - W3Schools
Learn how to disable autocomplete of an input field. Turn Off Autocomplete. Use the autocomplete attribute to turn off autocomplete for input fields: ......
Read more >
Disable HTML form input autocomplete and autofill · GitHub
Disable HTML Form Input Autocomplete and Autofill · Add autocomplete="off" onto <form> element; · Add hidden <input> with autocomplete="false" as a first children ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found