Semantic-UI-React icon indicating copy to clipboard operation
Semantic-UI-React copied to clipboard

Single Dropdown Select - showing label

Open tresdev opened this issue 7 years ago • 3 comments

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

tresdev avatar Jan 26 '19 09:01 tresdev

👋 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.

welcome[bot] avatar Jan 26 '19 09:01 welcome[bot]

Is this the same as: https://github.com/Semantic-Org/Semantic-UI-React/issues/3468 ?

isaacs-gh avatar May 06 '19 01:05 isaacs-gh

Is this the same as: #3468 ?

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

tresdev avatar May 09 '19 08:05 tresdev