Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set empty value? #39

Open
netojose opened this issue Mar 23, 2021 · 1 comment
Open

How to set empty value? #39

netojose opened this issue Mar 23, 2021 · 1 comment

Comments

@netojose
Copy link

netojose commented Mar 23, 2021

I tried to leave blank, but automatically, Afghanistan is selected.
I looked at the docs, and the source code, I think there is no way, right?

I found this at the source code:

selectedItem = elements[0];

So, when the empty value is passed, automatically Afghanistan will be chosen. Why?

@VladPhi
Copy link

VladPhi commented Aug 2, 2022

I have the same issue, it's not correct that it's selected by default.
Selection type is CountryCode, or it could be done by adding Select country with -- code to the code_countries_en.dart or by changing the logic, that's preferable. But in both it's necessary to change the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants