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

Single Dropdown Select - showing label #3401

Closed
tresdev opened this issue Jan 26, 2019 · 3 comments
Closed

Single Dropdown Select - showing label #3401

tresdev opened this issue Jan 26, 2019 · 3 comments
Labels

Comments

@tresdev
Copy link

tresdev commented Jan 26, 2019

Feature Request

Problem description

124123

I can't figure out how to put label or flag in the selected item. It just shows text value provided in the options props.

Proposed solution

I want to put label in the selected item as in the dropdown item list.

For multiple selection, renderLabel prop can handle this problem, but for single-select, it is not. I might be able to create a custom dropdown, but I think it makes sense to have something like renderLabel function, or any other way to show label or flag in the selected item also, not just items in the dropdown item list.

#852 seems to be related with this issue, but still I can't find out how to customize the selected item, except just to alternate the text to something else.

MVP

https://codesandbox.io/s/5qq2nm7ol

@welcome
Copy link

welcome bot commented Jan 26, 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.

@isaacs-gh
Copy link

Is this the same as: #3468 ?

@tresdev
Copy link
Author

tresdev commented May 9, 2019

Is this the same as: #3468 ?

@isaac-ipl Oh well. yeah. It seems like the same one.

@tresdev tresdev closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants