react-segmented-control
Advanced tools
+1
-1
@@ -7,3 +7,3 @@ { | ||
| ], | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "homepage": "https://github.com/enki-com/react-segmented-control", | ||
@@ -10,0 +10,0 @@ "description": "Simple react.js component for a segmented control", |
+1
-1
| { | ||
| "name": "react-segmented-control", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "Simple react.js component for a segmented control", | ||
@@ -5,0 +5,0 @@ "main": "react-segmented-control.js", |
@@ -32,4 +32,4 @@ ;(function (root, factory) { | ||
| this.props.children.map(function(child, index) { | ||
| var selected = child.props.value === this.state.selected || | ||
| index === this.state.selected; | ||
| var selected = (child.props || {}).value === this.state.selected || | ||
| index === this.state.selected; | ||
| return ( | ||
@@ -43,3 +43,3 @@ React.createElement("div", { | ||
| id: "sc-" + this.props.name + index, | ||
| value: child.props.value || index, | ||
| value: (child.propsĀ || {}).value || index, | ||
| checked: selected, | ||
@@ -46,0 +46,0 @@ onChange: this.handleChange}), |
373105
0