EnsembleUI / ensemble

Build native apps 20x faster than Flutter, RN or any other tech
https://ensembleui.com/
BSD 3-Clause "New" or "Revised" License
119 stars 15 forks source link

regression - `ensemble.CountryCodeSelector` widget does not show the selected country code anymore #1534

Open kmahmood74 opened 1 month ago

kmahmood74 commented 1 month ago

see this - https://studio.ensembleui.com/app/nLEcmxcORmCec1CrAgvG/screen/cBEjFoPXstpjNRYkWZZW

or just paste this EDL-

View:
  styles:
    useSafeArea: true

  # Optional - set the header for the screen
  header:
    titleText: Home

  # Specify the body of the screen
  body:
    Column:
      styles:
        padding: 24
        gap: 8
      children:
        - Text:
            text: Hi there!
        - ensemble.CountryCodeSelector
  1. select a country code from the dropdown
  2. it doesn't show the selected item
kmahmood74 commented 1 month ago

the actual issue is that the country selector widget has repeated values which is not allowed by dropdowns. This is because some countries share the same country code such as Canada and US (+1). The fix is to handle it properly in the country selector implementation.