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

Can show flags instead of text in Select addon #3468

Closed
mehrad77 opened this issue Feb 27, 2019 · 2 comments
Closed

Can show flags instead of text in Select addon #3468

mehrad77 opened this issue Feb 27, 2019 · 2 comments

Comments

@mehrad77
Copy link

mehrad77 commented Feb 27, 2019

Feature Request

Problem description

currently, select tags are showing like this:
screenshot from 2019-02-27 16-56-03
which it's data comes from an object like this:

{
  { key: 'af', value: 'af', flag: 'af', text: '+93' },
  { key: 'cn', value: 'cn', flag: 'cn', text: '+14' }
}

But how can show flags inside of choose Select option instead of text? (+93 in this example)

Proposed solution

Well, I don't know how <Select /> is designed but since we have <Flag /> component, it shouldn't be hard to implement this.

@welcome
Copy link

welcome bot commented Feb 27, 2019

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@layershifter
Copy link
Member

Duplicate of #1147, see the issue and Codesandbox for workarouds: https://codesandbox.io/s/qo4mrr5n9

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

No branches or pull requests

2 participants