gogoair / react-combo-select

React dropdown for select and multiselect
MIT License
28 stars 9 forks source link

Some fixes and updates #36

Closed darktasevski closed 6 years ago

darktasevski commented 6 years ago

Updated README, and fixed two issues; In one case we've unintentionally directly mutated ComboSelect state, which caused a nasty bug where the value in ComboSelect wasn't updating correctly. Another one was related to groups, issues with selecting value too, because I was checking array of values with contains() to find selected one, but when we had just a single string value that was causing an issue where values with similar names (GI and GIT, for example) were both selected, instead of just picking one.