diff --git a/src/Creatable.js b/src/Creatable.js index 3f2f473e28..7f622baa30 100644 --- a/src/Creatable.js +++ b/src/Creatable.js @@ -205,12 +205,21 @@ const Creatable = React.createClass({ render () { const { - children = defaultChildren, newOptionCreator, shouldKeyDownEventCreateNewOption, ...restProps } = this.props; + let { children } = this.props; + + // XXX: We can't use destructuring default values to set this, because if + // we're passed null for our 'children' prop, the default value will not be + // used as babel compiles destructuring default values to: + // value === undefined ? defaultValue : value + if (!children) { + children = defaultChildren; + } + const props = { ...restProps, allowCreate: true,