New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] Problem with disabling auto-complete on text-field with type "password" #2792
Comments
That does not sound like autocomplete but Chrome autofill feature. |
this is a UI bug, i just raised the same issue - if field has some text in it, we could add the class that adds the label above on the page render, can we re open this issue? |
And for me this also only happens when go the login page on a fresh window, or i refresh it - if i start on another router view then go to the login screen, it's fine |
Someone with a solution for this bug? |
I hate to do that, but because |
I created a mixin that solves the issue on Chrome. Add it to the component that creates your text fields, selects, combos, autocompletes, etc.
|
Sorry for digging up an old thread, but after being unable to find the solution to this, I finally managed to get it working like this:
It still behaves a bit weirdly - If I put I'm sharing it here in case it helps anyone else, as this is the first page that I landed on when Googling the problem |
change label to placeholder, and this fixing in same issue |
I wouldn't say it's a problem, but this behavior still exists today. I found this issue having a Google search. Piggy backing off of @baggrek suggestion (which didn't help in my case), the solution I came up with was to change the name attribute on the v-autocomplete. Google Auto FIll makes assumtions about what the field is, I'm guessing based on that attribute and possbily also the contents of the select. To fix this, just give it a name and stay away from generic names such as 'name', 'firstname', 'address', If you want to use something like 'name' you can prepend it much the same way we do with our vue components anyway. i.e. name='myapp-name'. Hope this helps other who google search the same thing I did Sorry for bumping an old closed issue |
To follow up on chris' post above: I tried
changing to |
@clouder comment help me to defeat autofill.
with data This trick worked on all |
sadly this not work for me, only when I press the space on android mobile chrome @bob-lee |
The only workaround that works for me is to set some random name |
@kremda same here. Setting name to an uuid/v4 value to be sure that it is unique across time ;) |
This worked for me. Quite ridiculous the effort involved in preventing autofill. |
This solved the problem for me by adding autocomplete="new-password" |
autocomplete="null" Thank me later. |
Versions and Environment
Vuetify: 0.17.3
Vue: 2.5.3
Browsers: Chrome 63.0.3239.84
OS: Mac OS 10.13.1
Steps to reproduce
https://i.snag.gy/TXN1Kd.jpg
I can't disable Google's autocomplete on
v-text-field
's with "password"-type. I've triedautocomplete="off"
.Expected Behavior
That the component stops googles autocomplete
Actual Behavior
It does not stop the autocomplete
The text was updated successfully, but these errors were encountered: