From bbe1964a4285030ab4703db765129c0ba262c591 Mon Sep 17 00:00:00 2001 From: Horcrux Date: Tue, 4 Apr 2017 12:30:53 +0800 Subject: [PATCH] Fix #284 --- lib/extract/extractText.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extract/extractText.js b/lib/extract/extractText.js index 5d8fb98c..b7e628d9 100644 --- a/lib/extract/extractText.js +++ b/lib/extract/extractText.js @@ -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 {child.toString()};