mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 19:50:05 +08:00
fix children map
This commit is contained in:
parent
5022bfef13
commit
4bf5e4e3f4
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user