4 ms·
I had to disable autocomplete recently, neither autocomplete="false" or autocomplete="off" worked. MDN (source below) indicates using "new-password, but in my e
by atombum 5y ago
I had to disable autocomplete recently, neither autocomplete="false" or autocomplete="off" worked. MDN (source below) indicates using "new-password, but in my experience passing in any random string to the autocomplete attribute did work.
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#preventing_autofilling_with_autocompletenew-password https://developer.mozilla.org/en-US/docs/Web/Security/Securi...
- joshstrange 5y agoYeah, I've taken to just generating a UUID and throwing in there as I normally have a library to do that on my frontend projects.
- notatoad 5y agothat only sort of sometimes works. chrome uses some sort of AI to look at the text displayed in a way that could visually be construed as a label and use that to identify the field for autocomplete. the only foolproof method i've found is to use contenteditable spans instead of input tags, which has it whole own set of problems.