Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Autocomplete does not prevent browser autocompltete #1849

Closed
tanwaniniranjan opened this issue Mar 10, 2015 · 9 comments
Closed

Autocomplete does not prevent browser autocompltete #1849

tanwaniniranjan opened this issue Mar 10, 2015 · 9 comments
Milestone

Comments

@tanwaniniranjan
Copy link

does not prevent browser autocompltete, so every time i try to enter a city in my form, chrome autosuggest messes it up

@ACDN
Copy link

ACDN commented Mar 10, 2015

I noticed this as well. A work around I used is to put: autocomplete="off" in the form definition.

@tanwaniniranjan
Copy link
Author

but that would disable it for all fields. Now, i am talking about a lengthy form..

@ACDN
Copy link

ACDN commented Mar 10, 2015

Your are right, what we need is a way to set autoComplete="off" on the input that is within md-autocomplete template. If you need to move forward I'd just slap that onto the input element within the mdAutocomplete directive.

@tanwaniniranjan
Copy link
Author

Thats what i am about to do! :)
But in general, i think i'd want to report this!

@ACDN
Copy link

ACDN commented Mar 10, 2015

Absolutely! I just wanted to help keep your project moving. Gotta love open source :)

@tanwaniniranjan
Copy link
Author

Thank you man! Appreciate it! :)

@robertmesserle
Copy link
Contributor

Re-opening issue. It seems that when 2 or more autocomplete components are on the same page, browser autocomplete becomes enabled in Chrome.

@robertmesserle
Copy link
Contributor

It turns out there are some scenarios in which we cannot prevent autofill, not even with autocomplete="off". For most cases, this is resolved.

@Splaktar
Copy link
Member

Splaktar commented May 26, 2018

@mk4yukkalab Please ask for help on Stack Overflow, Gitter, or the AngularJS Material forums.

Please limit GitHub issues to bug reports with CodePen reproductions or enhancement requests.

@angular angular locked as resolved and limited conversation to collaborators May 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants