From 1291c580a9d06d7decdb9e9252ffff1bc9f89941 Mon Sep 17 00:00:00 2001 From: Austin Green Date: Fri, 14 Sep 2018 10:12:22 -0700 Subject: [PATCH] fix(select): remove array render to support React <16 --- packages/select/src/elements/SelectField.js | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/select/src/elements/SelectField.js b/packages/select/src/elements/SelectField.js index 901b91797f9..f6cbf217d34 100644 --- a/packages/select/src/elements/SelectField.js +++ b/packages/select/src/elements/SelectField.js @@ -58,15 +58,15 @@ export default class SelectField extends ControlledComponent { this.selectRef = undefined; return ( - - - {({ - getLabelProps: getFieldLabelProps, - getInputProps: getFieldInputProps, - getHintProps, - getMessageProps - }) => - Children.map(children, child => { + + {({ + getLabelProps: getFieldLabelProps, + getInputProps: getFieldInputProps, + getHintProps, + getMessageProps + }) => ( + + {Children.map(children, child => { if (!isValidElement(child)) { return child; } @@ -88,10 +88,10 @@ export default class SelectField extends ControlledComponent { } return child; - }) - } - - + })} + + )} + ); } }