I'm using an <ng-autocomplete for users to select their city, state, and zip. I tried to disable chrome's autofill using "autocomplete = "none" just like regular inputs, but it doesn't work, I think because this isn't an html input.
Is there a way to disable chrome's autofill on this field?
My code:
<ng-autocomplete
[data]="countryObject"
[searchKeyword]="keyword"
[initialValue]="initialVal"
placeholder="Search Country"
(selected)="selectEvent($event)"
(inputChanged)='onChangeSearch($event)'
(inputFocused)='onFocused($event)'
[itemTemplate]="itemTemplate"
[notFoundTemplate]="notFoundTemplate"
formControlName="country"
[ngClass]="{ 'is-invalid': submitted && f.country.errors }"
required
>
</ng-autocomplete>