File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-select2-wrapper" ,
3
- "version" : " 0.0.7 " ,
3
+ "version" : " 0.0.8 " ,
4
4
"description" : " React component for Select2" ,
5
5
"main" : " lib/components/Select2.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default class Select2 extends Component {
52
52
{ this . props . data . map ( ( item , k ) => {
53
53
if ( typeof item === 'string' ||
54
54
( ( ! ! item && typeof item === 'object' ) && Object . prototype . toString . call ( item ) === '[object String]' ) ) {
55
- return ( < option key = { 'option-' + k } > { item } </ option > ) ;
55
+ return ( < option key = { 'option-' + k } value = { item } > { item } </ option > ) ;
56
56
}
57
57
return ( < option key = { 'option-' + k } value = { item . id } > { item . text } </ option > ) ;
58
58
} ) }
You can’t perform that action at this time.
0 commit comments