Skip to content

Commit

Permalink
Fix text input suggestions when array is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
karatechops committed Sep 5, 2017
1 parent d126449 commit 90132e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/TextInput.js
Expand Up @@ -125,7 +125,7 @@ export default class TextInput extends Component {
_onInputChange (event) {
const { onDOMChange, suggestions } = this.props;

if (suggestions && suggestions.length) {
if (suggestions && Array.isArray(suggestions)) {
this.setState({
activeSuggestionIndex: -1, announceChange: true, dropActive: true
});
Expand Down

0 comments on commit 90132e4

Please sign in to comment.