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.62k stars 3.74k forks source link

[Bug]: Phone input widget shows same flag for countries that share dial coes #11101

Open sbalaji1192 opened 2 years ago

sbalaji1192 commented 2 years ago

Is there an existing issue for this?

Current Behavior

For countries that share dial codes (ex. Guernsey and the united kingdom), we are showing the same flag in the options dropdown. And when one country is selected, we show a country that shares the same dial code as selected in the dropdown.

+358 - Aland Islands (AX), Finland (FI) +672 - Antarctica (AQ), Norfolk Island (NF) +61 - Australia (AU), Christmas Island (CX), Cocos (Keeling) Islands (CC) +500 - Falkland Islands (Malvinas) (FK), South Georgia and the South Sandwich Islands (GS) +590 - Guadeloupe (GP), Saint Barthelemy (BL), Saint Martin (MF) +44 - Guernsey (GG), Isle of Man (IM), Jersey (JE), United Kingdom (GB) +595 - Guyana (GY), Paraguay (PY) +262 - Mayotte (YT), Reunion (RE) +47 - Norway (NO), Svalbard and Jan Mayen (SJ)

Steps To Reproduce

  1. Add a Phone number input
  2. Choose united kingdom (+44) as the default country code.
  3. Observe that Guernsey (+44) is shown as selected

Environment

Production

Version

Cloud

rsiddle commented 1 year ago

Having Guernsey as the default flag for +44 is adding quite a lot of confusion to people in the UK who are expecting the Union Jack flag. As a short-term fix, would there be a possibility of reordering the country codes so that the UK appears ahead of Guernsey?