gogoair / react-combo-select

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

Value of the select element is incorrect #48

Open Max-Z80 opened 5 years ago

Max-Z80 commented 5 years ago

I use the react-combo-select component without setting the text prop (because I want the component to display 'select' and not a predefined option). It has say 3 options ('a','b', 'c') After I choose the option 'c' in the drop down list, the property 'value' of the select html element in the DOM does not have the expected value. Instead it always has the value of the first option (ie 'a' here) in the drop down list. The component displays the value 'c'. This issue occurs only the first time I use the component. When I repeat the procedure above with another option, the component behaves properly.