Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autofill is not working #82

Open
RHeynsZa opened this issue Sep 4, 2021 · 4 comments
Open

Autofill is not working #82

RHeynsZa opened this issue Sep 4, 2021 · 4 comments

Comments

@RHeynsZa
Copy link

RHeynsZa commented Sep 4, 2021

Describe the bug
Value is not being set when auto set by browser, ie Chrome Autofill

To Reproduce
Steps to reproduce the behavior:

  1. Have a country saved to auto fill
  2. try to fill a form with country select
  3. See it populate with your country, but not be set

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:
image

Expected Result:
image

Desktop (please complete the following information):

  • OS: Ubuntu 2-
  • Browser chrome
  • Version 91.0.4472.114 (Official Build) (64-bit)
@RHeynsZa
Copy link
Author

RHeynsZa commented Sep 4, 2021

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

@sommercity
Copy link

sommercity commented Nov 14, 2022

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>

@RDeluxe
Copy link

RDeluxe commented Apr 18, 2023

This is not working for me, 1password is filling the field anyway

@davidmarogy
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants