Skip to content
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

remove autocomplete in chrome browser #728

Closed
ggirodda opened this issue May 16, 2018 · 14 comments · Fixed by #922
Closed

remove autocomplete in chrome browser #728

ggirodda opened this issue May 16, 2018 · 14 comments · Fixed by #922

Comments

@ggirodda
Copy link

I want to thank you for your work, vue-multiselect works really great!
Can you please replace the autocomplete="off" with autocomplete="nope" as a bug fix for chrome wich ignores the first one ?
the bug
https://bugs.chromium.org/p/chromium/issues/detail?id=370363
the solution (on the bottom of the section "Disabling autocompletion")
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Disabling_autocompletion
I tested it and it works well (for now)

@shentao
Copy link
Owner

shentao commented Jun 7, 2018

Thanks! Sounds good :)

maantje added a commit to maantje/vue-multiselect that referenced this issue Jun 26, 2018
Alter autocomplete value from "off" to "nope". fixes shentao#728
@wujekbogdan
Copy link

@shentao
I can't see this change in master. Any chance to merge it soon?

@vkruoso
Copy link

vkruoso commented Dec 12, 2018

@shentao can you reopen this? It looks like it a PR was not opened. Also, it seems that the "nope" is ignored by Firefox and it reverts to default autocompletion behavior.

@dukhevych
Copy link

@shentao
When to expect release with this fix?

@laurens94
Copy link

It seems autocomplete="nope" doesn't work anymore in Chrome, it should be autocomplete="off" again..

@shentao
Copy link
Owner

shentao commented Aug 1, 2019

I sooo hate that happening...

@michaelwills
Copy link

tl;dr I doubt there can be "one right way". How about a string option which defaults to "off"? My current hack solution right now, primarily because of Chrome, is to use the @open event to update the autocomplete attribute to new-${id}-field which has worked so far.

The long version:

It appears there is an official answer. This explains the reasoning behind it ("think of the children users!")

https://bugs.chromium.org/p/chromium/issues/detail?id=468153#c164

so... autocomplete="off" no longer works as an option.

This says what to use:

https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill

So there it says it's still to supposed to work but... no.

And the battle rages here:

https://bugs.chromium.org/p/chromium/issues/detail?id=587466

@vcarbo
Copy link

vcarbo commented Dec 13, 2019

Any news about this fix ? I still have autocomplete="nope"
I have to fix it with document.getElementById("elementid").setAttribute("autocomplete", "off")

@chrislfield
Copy link

Can this be re-opened? Is a minor yet annoying usability bug.

@sontd-0882
Copy link

This is really annoy. It's still nope instead of off. I'm using v2.1.6

Screen Shot 2020-01-31 at 2 41 40 PM

@ravipatel2293
Copy link

I have resolved this issue by using refs.
Below is the code which i have written in mounted life hook.

// **multiselectRef** is ref of the multiselect componenet
mounted(){
       this.$refs.multiselectRef.$refs.search.setAttribute("autocomplete", "off")
}

@berk9595
Copy link

berk9595 commented Apr 14, 2020

<input type="text" id="myid">

$( document ).ready(function() {
         $('#myid).attr("autocomplete","false");
         $('#myid').attr('readonly', 'true');
         $( "#myid" ).click(function() {
                 $('#myid').attr('readonly', null);
         });
});

@ian-leggett
Copy link

autocomplete="nope" isn't even a thing, this is inaccessible, nope has no meaning and is not valid.

@juliennesme
Copy link

It seems autocomplete="off" won the battle...

This is still anoying. It should be reopened.

https://www.w3schools.com/howto/howto_html_autocomplete_off.asp
https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
Just did a test on chrome it works with "off"

I'm implementing the hack from @ravipatel2293 but hope for a better long term solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet