angular-material-extensions / select-country

Angular Material component that allow users to select a country or nationality with an autocomplete feature
https://angular-material-extensions.github.io/select-country/
MIT License
126 stars 40 forks source link

Patching country value alpha3Code problem #94

Open simionrobert opened 2 years ago

simionrobert commented 2 years ago

Describe the bug Patching the country value does not work for alpha3Code. However, for alpha2Code works. Should work also for alpha3Code.

To Reproduce Steps to reproduce the behavior:

  1. Patch the value using alpha3Code
    this.identityCardFormGroup.patchValue({
      taraEmiterii: { alpha3Code: 'ROU' },
    });
  2. You will see that the value will not update

Expected behavior It should set the country based on alpha3Code

Desktop (please complete the following information):