We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20f8a6c commit d612131Copy full SHA for d612131
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-select2-wrapper",
3
- "version": "0.0.7",
+ "version": "0.0.8",
4
"description": "React component for Select2",
5
"main": "lib/components/Select2.js",
6
"scripts": {
src/components/Select2.js
@@ -52,7 +52,7 @@ export default class Select2 extends Component {
52
{this.props.data.map((item, k) => {
53
if (typeof item === 'string' ||
54
((!!item && typeof item === 'object') && Object.prototype.toString.call(item) === '[object String]')) {
55
- return (<option key={'option-' + k}>{item}</option>);
+ return (<option key={'option-' + k} value={item}>{item}</option>);
56
}
57
return (<option key={'option-' + k} value={item.id}>{item.text}</option>);
58
})}
0 commit comments