react-component / select

React Select
https://select.react-component.now.sh/
MIT License
896 stars 453 forks source link

Add support to remove selected className if another option is active #65

Closed zdila closed 8 years ago

zdila commented 8 years ago

Please add support to remove .rc-select-dropdown-menu-item-selected from the selected item if another item has .rc-select-dropdown-menu-item-active.

The reason is that I would like the select dropdown to behave as in native <select> where only a single item of a dropdown is highlighted at a time.

yiminghe commented 8 years ago

chrome select/option on mac

selected option has a check mark on the left edge, active option has a blue background

zdila commented 8 years ago

I see. So I would like it to behave like https://jqueryui.com/selectmenu/.

yiminghe commented 8 years ago

It will need some change in rc-menu, which i think it is not worth it.

you can try to pr on rc-menu