Closed wottpal closed 5 months ago
@wottpal can you please tell me where am I using autocomplete="off"
??
Hi, I have found this issue as well. I'm not sure where in the code you have it but the rendered input ends up with autocomplete="off"
even if I have set this to something else. I tried this with the directive and component.
<input _ngcontent-mmg-c377="" matinput="" matvalidateaddress="" required="" class="mat-input-element mat-form-field-autofill-control form-control ng-tns-c109-12 cdk-text-field-autofill-monitored pac-target-input ng-dirty ng-touched ng-valid" ng-reflect-required="" ng-reflect-placeholder="Please enter the address" id="mat-input-7" placeholder="Please enter the address" aria-invalid="false" aria-required="true" autocomplete="off" ng-reflect-model="2132">
Hi, also having this issue.
I had to hide the field dynamically and introduce a "+ Add Address" button within my angular app because the required flag is being forced as well, except I'm not using the map element, just the input element to help users suggestions.
Can we please make the required and autocomplete params overridable?
Greatly appreciated!
Elie Kassouf
For two reasons
autocomplete="off"
on adress-search input should be removed:autocomplete="off"
is ignored for historical reasons and therefore useless. The new way to disable autofill in Chrome isautocomplete="chrome-off"
(see here)autocomplete="chrome-off"
on mymatGoogleMapsAutocomplete
-input but it is ignored and overwritten byautocomplete="off"
)Thank you very much!