fix children map

This commit is contained in:
yiminghe 2015-08-27 13:18:23 +08:00
parent 5022bfef13
commit 4bf5e4e3f4

View File

@ -34,7 +34,7 @@ export default React.createClass({
}, },
render: function () { render: function () {
var props = this.props; var props = this.props;
var children = props.children.map((radio) => { var children = React.Children.map(props.children, (radio) => {
if (radio.props) { if (radio.props) {
return <Radio return <Radio
key={radio.props.value} key={radio.props.value}