vue-google-autocomplete icon indicating copy to clipboard operation
vue-google-autocomplete copied to clipboard

Disable autofill in chrome

Open bernhardh opened this issue 7 years ago • 3 comments

Its really anoying, that you get the autofill overlay on chrome:

image

To get rid of this, you just have to add the attribute autocomplete="disabled" on the input field. See https://stackoverflow.com/questions/47775041/disable-autofill-in-chrome-63

bernhardh avatar Oct 18 '18 16:10 bernhardh

If anyone else encounters the same issue, came up with a inelegant but working fix here:

https://github.com/olefirenko/vue-google-autocomplete/issues/62#issuecomment-447904883

jimhlad avatar Dec 17 '18 16:12 jimhlad

Another inelegant one ;) : wrap your component inside a form tag

<form autocomplete="off">
<vue-google-autocomplete</vue-google-autocomplete>
</form>

powolnymarcel avatar Jan 04 '19 19:01 powolnymarcel

This worked for me:

<vue-google-autocomplete
    // ...
    onfocus="this.setAttribute('autocomplete', 'new-password');"
>
</vue-google-autocomplete>

Note that the field can still be auto-filled by other "auto-fillable" inputs (which can be annoying).

Flexonze avatar Oct 05 '20 16:10 Flexonze