Open RHeynsZa opened 3 years ago
I see the ability to disable autocomplete has been merged for a while, but there hasn't been a release in 2 months. I will thus keep this open
In case someone has the same issue, i was able to deactivate autofill on the country-field by adding autocomplete="new-country" to mat-country-select
<mat-select-country appearance="fill" label="Land" formControlName="country" autocomplete="new-country" [required]="true" (onCountrySelected)="onCountrySelected($event)"> </mat-select-country>
This is not working for me, 1password is filling the field anyway
Same for me, i can't dissable autocomplete. Alternative if it would be possible to set an error if no value is selected, everything would be fine for me.
<mat-select-country i18n-label="@@addWarehouse.add_form.country" appearance="fill" label="Country"
[language]="locale"
[itemsLoadSize]="500"
[required] = true
[error]="'Mandatory field'"
autocomplete="new-country"
formControlName="country"
class="body-default"
>
</mat-select-country>
Describe the bug Value is not being set when auto set by browser, ie Chrome Autofill
To Reproduce Steps to reproduce the behavior:
Expected behavior Either the component needs to respect autofill, and select a country if only one is found after the autofill. Or autofill should be disabled.
Screenshots Result:
Expected Result:
Desktop (please complete the following information):