country-list-pick icon indicating copy to clipboard operation
country-list-pick copied to clipboard

No country if not selected, instead of Afganistan

Open VladPhi opened this issue 2 years ago • 1 comments

While user did not select the country, it's preferable to maintain text like "Select Country" instead of Selecting [0]

selectedItem = elements[0];

By default. May be added to the Map?

VladPhi avatar Aug 02 '22 12:08 VladPhi

I figured it out by adding to the code_countries_en {"name": "Select country", "dial_code": "--", "code": "--"} and changing in country_list_pick selectedItem = elements[0] to selectedItem = elements.last

adding a white rectangle called --.png to the flags folder. Could this solution or similar be added? It's annoying that Afganistan is selected automatically, as it could be saved by mistake.

VladPhi avatar Aug 02 '22 13:08 VladPhi