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.

Turn off autocomplete

See original GitHub issue

Hey there,

Thanks for the excellent component.

I believe most browsers respect an autocomplete='off' rule: http://www.w3schools.com/tags/att_input_autocomplete.asp

I tried to apply an autocomplete='off' rule to the react-select box, but couldn’t seem to get it to work. Is this something that other people have been able to do? And if not, I’d like to formally request the feature.

Thanks! Thomas

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:6
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
tnrichcommented, Feb 9, 2016

Hey @slybridges , I looked further into the issue and it seems like my issue was caused by chrome ignoring the “off” parameter. Changing it to a random string, like “none” fixed it:

https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion

Thanks for the tip!

2reactions
slybridgescommented, Feb 5, 2016

I’m wrapping the component doing this:

<Select
  // ... other props
 inputProps={{ ...inputProps, autoComplete: 'off', autoCorrect: 'off', spellCheck: 'off' }}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to turn off form autocompletion - Web security | MDN
This article explains how a website can disable autocomplete for form fields.
Read more >
How To Turn Off Autocomplete for Input
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 >
How Do I Disable or Clear AutoFill/AutoComplete ...
Click the Chrome menu icon. (Three dots at top right of screen.) · Click on Settings. · In the "Autofill" section, expand the...
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 to disable the form autofill feature in your browser
Click the Chrome menu (three dots) on the browser toolbar. · Select Settings. · Click on the Sync section. · Click on the...
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