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

md-autocomplete type="search" (Chrome autofill behavior) #2699

@kuhnroyal

Description

@kuhnroyal

I have a md-autocomplete which retrieves zip codes. The autocomplete="off" does not prevent the Chrome autofill settings for adresses etc. thus rendering the box pretty much useless since one can not select the results.

Also see https://code.google.com/p/chromium/issues/detail?id=468153

Chrome seems to detect that by means of the labeland name attribute, so this happens when a md-floating-label with address-type name is used e.g. Zip/Street etc.

I have been reading a little bit in the HTML spec and maybe the input fields in md-autocomplete should have the type="search". This would as far as I can tell prevent the chrome autofill popup.

If for some reason the is not generally wanted, md-autocomplete should at least allow to override the type attribute and maybe even the autocomplete attribute.

https://html.spec.whatwg.org/multipage/forms.html#autofill
https://html.spec.whatwg.org/multipage/forms.html#text-(type=text)-state-and-search-state-(type=search)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions