kapilkumar0037 / ngx-countries-dropdown

Angular library with customizable countries dropdown component with flags, dial code, language and currency details.
MIT License
5 stars 1 forks source link

after hiding dial code [countryListConfig] = "countryListConfig" in the list it is getting hided but not when value is selected #19

Closed kotte94 closed 1 month ago

kotte94 commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

kotte94 commented 1 month ago
                 <lib-country-list [countryListConfig] = "countryListConfig" (onCountryChange)="onCountryChange($event)"></lib-country-list>

countryListConfig: IConfig = { hideDialCode: true };

kotte94 commented 1 month ago

version number 1.051

kapilkumar0037 commented 1 month ago

Hi @kotte94, you need to set the selectedCountryConfig as well to hide the same from selected country. Thanks, Kapil