Permalink
Browse files

Merge pull request JedWatson#1292 from DanielHeath/opt-out-of-clearin…

…g-options

Only remove options if a loading placeholder is available
  • Loading branch information...
JedWatson committed Oct 11, 2016
2 parents 75f3e90 + 45be8b4 commit cf0429bfd9f57f334d7ae75411cebb4dd8f130ec
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Async.js
View
@@ -173,7 +173,7 @@ export default class Async extends Component {
const props = {
noResultsText: this.noResultsText(),
placeholder: isLoading ? loadingPlaceholder : placeholder,
options: isLoading ? [] : options,
options: (isLoading && loadingPlaceholder) ? [] : options,
ref: (ref) => (this.select = ref)
};

0 comments on commit cf0429b

Please sign in to comment.