Skip to content

Commit

Permalink
Merge pull request JedWatson#1249 from jooj123/patch/add-ref
Browse files Browse the repository at this point in the history
Adding back ref that was removed in rc2
  • Loading branch information
JedWatson authored Sep 25, 2016
2 parents b4a3fd1 + d5f2ce2 commit 3b7dad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ export default class Async extends Component {
const props = {
noResultsText: isLoading ? loadingPlaceholder : searchPromptText,
placeholder: isLoading ? loadingPlaceholder : placeholder,
options: isLoading ? [] : options
options: isLoading ? [] : options,
ref: (ref) => (this.select = ref)
};

return children({
Expand Down

0 comments on commit 3b7dad8

Please sign in to comment.