From d5f2ce259cc7994f89fa053afc51e7752b90f075 Mon Sep 17 00:00:00 2001 From: Martin Jujou Date: Sat, 24 Sep 2016 18:37:11 +1000 Subject: [PATCH] Adding back ref that was removed in rc2 --- src/Async.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Async.js b/src/Async.js index 8f8d7bb36a..136338d337 100644 --- a/src/Async.js +++ b/src/Async.js @@ -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({