-
Notifications
You must be signed in to change notification settings - Fork 3.4k
datepicker: cannot set autocomplete property in generated input tag #11851
Comments
What value would you assign in this case? The autocomplete attribute doesn't have any date-related values other than birth dates. Do you just want to set |
I found in my tests that I've asked to explicitly propagate the parameter on the compiled |
OK, I think that it would be reasonable to accept a PR to add a new |
Bug
Detailed Reproduction Steps:
md-datepicker
, nested inside anmd-input-container
, nested inside aform
.name
property tomd-datepicker
("releaseDate" and "expirationDate" in my case)What is the expected behavior?
Autofill should not try to populate a datepicker.
md-datepicker
should have an attribute likemd-input-autocomplete
that should set the "autocomplete" attribute and value in the generated input tag.An alternative could be to disable autocomplete behaviors entirely (not sure how).
What is the current behavior?
Chrome will suggest to autofill the
md-input
generated by themd-datepicker
with an email (in my case, but this may vary).What is the use-case or motivation for changing an existing behavior?
If a user wants to autofill other fields of the form, the datepicker will be populated with wrong data.
Which versions of AngularJS, Material, OS, and browsers are affected?
Is there anything else we should know? Stack Traces, Screenshots, etc.
Nothing relevant
The text was updated successfully, but these errors were encountered: