Skip to content

Commit

Permalink
Merge pull request #2140 from karaggeorge/prompt-text-creator-label-bug
Browse files Browse the repository at this point in the history
Creatable: when `promptTextCreator` returns only the label, changes don't fire on first Enter key press
  • Loading branch information
JedWatson committed Nov 19, 2017
2 parents c22abbd + a75d9ae commit 8e69bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Creatable.js
Expand Up @@ -89,7 +89,7 @@ class CreatableSelect extends React.Component {
}) {
const { isOptionUnique } = this.props;

options = options || this.select.filterOptions();
options = options || this.props.options;

return isOptionUnique({
labelKey: this.labelKey,
Expand Down

0 comments on commit 8e69bc3

Please sign in to comment.