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 () {
var props = this.props;
var children = props.children.map((radio) => {
var children = React.Children.map(props.children, (radio) => {
if (radio.props) {
return <Radio
key={radio.props.value}