Disable Browser Autocomplete
See original GitHub issueWhen using react-select in Microsoft Edge I have a problem where the browser autocomplete is appearing on top of the dropdown making it hard to use.
Currently as a workaround I am using jQuery to add ("autocomplete", "off")
to the DOM element. I found that while the element is focused the browser wont reflect the changes. So instead of using autoFocus= true
I am now calling a focus function in the componendDidMount function.
componentDidMount(){
$(".myClass .Select-input input").attr("autocomplete", "off");
this.focus();
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10
Top 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 ...
Just set autocomplete="off" . There is a very good reason for doing this: You want ...
Read more >Disable HTML form input autocomplete and autofill
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 >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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
this worked for me
inputProps={{autoComplete: 'random-string', autoFill:'off' }}
autoComplete=“new-password” (yes it works)