From 06aa5877e2daa5e6a15e3e0f180c5f6577e763e3 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Thu, 27 Aug 2015 13:34:38 +0800 Subject: [PATCH] fix children map --- components/radio/group.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/radio/group.jsx b/components/radio/group.jsx index edcdbcf7fe..85064c75ad 100644 --- a/components/radio/group.jsx +++ b/components/radio/group.jsx @@ -3,7 +3,7 @@ import Radio from './radio'; function getCheckedValue(children) { var checkedValue = null; - children.forEach(function (radio) { + React.Children.forEach(children, function (radio) { if (radio.props && radio.props.checked) { checkedValue = radio.props.value; }