appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.75k stars 3.76k forks source link

[Bug]: Country selector in phone input shows incorrect flag #17397

Closed zhirzh closed 2 years ago

zhirzh commented 2 years ago

Is there an existing issue for this?

Description

Dropdown shows incorrect flag (in some cases) when selecting a country which shares dial code with another country

Example: select UK (dial code +44) but flag shown if of Guernsey

Once any such country is selected, other countries with same country code are also shown as selected

Screenshot 2022-10-09 at 12 10 54 AM

List of duplicates in ISDCodeOptions list

 +44 : Guernsey, Isle of Man, Jersey, United Kingdom
 +47 : Norway, Svalbard and Jan Mayen
 +61 : Australia, Christmas Island, Cocos (Keeling) Islands
+262 : Mayotte, Reunion
+358 : Aland Islands, Finland
+500 : Falkland Islands (Malvinas), South Georgia and the South Sandwich Islands, 
+590 : Guadeloupe, Saint Barthelemy, Saint Martin
+595 : Guyana, Paraguay
+672 : Antarctica, Norfolk Island

Steps To Reproduce

Public Sample App

No response

Version

cloud

dilippitchika commented 2 years ago

Duplicate of #11101