This commit is contained in:
Horcrux
2017-04-04 12:30:53 +08:00
parent ea1a87887e
commit bbe1964a42
+1 -1
View File
@@ -105,7 +105,7 @@ export default function(props, container) {
content = childrenString;
children = null;
}
} else if (Children.count(children) > 1) {
} else if (Children.count(children) > 1 || Array.isArray(children)) {
children = Children.map(children, child => {
if (typeof child === 'string' || typeof child === 'number') {
return <TSpan>{child.toString()}</TSpan>;