diff --git a/src/Creatable.js b/src/Creatable.js index f1f3fe33e5..1916da045c 100644 --- a/src/Creatable.js +++ b/src/Creatable.js @@ -211,6 +211,7 @@ const Creatable = React.createClass({ const { newOptionCreator, shouldKeyDownEventCreateNewOption, + ref: refProp, ...restProps } = this.props; @@ -238,6 +239,9 @@ const Creatable = React.createClass({ this.labelKey = ref.props.labelKey; this.valueKey = ref.props.valueKey; } + if (refProp) { + refProp(ref); + } } };