Skip to content

Commit

Permalink
Merge pull request JedWatson#1292 from DanielHeath/opt-out-of-clearin…
Browse files Browse the repository at this point in the history
…g-options

Only remove options if a loading placeholder is available
  • Loading branch information
JedWatson authored Oct 11, 2016
2 parents 75f3e90 + 45be8b4 commit cf0429b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Async.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};

Expand Down

0 comments on commit cf0429b

Please sign in to comment.