diff --git a/src/Async.js b/src/Async.js index 0ab36f8744..66226b5d96 100644 --- a/src/Async.js +++ b/src/Async.js @@ -141,9 +141,10 @@ const Async = React.createClass({ let { isLoading, options } = this.state; if (this.props.isLoading) isLoading = true; let placeholder = isLoading ? this.props.loadingPlaceholder : this.props.placeholder; - if (!options.length) { - if (this._lastInput.length < this.props.minimumInput) noResultsText = this.props.searchPromptText; - if (isLoading) noResultsText = this.props.searchingText; + if (isLoading) { + noResultsText = this.props.searchingText; + } else if (!options.length && this._lastInput.length < this.props.minimumInput) { + noResultsText = this.props.searchPromptText; } return ( ); + }); + }); it('ignores the result of an earlier call, when the responses come in the wrong order', () => {