Skip to content

Commit

Permalink
Merge pull request #1448 from thezanke/master
Browse files Browse the repository at this point in the history
Fixes #1447 - Uncaught TypeError
  • Loading branch information
JedWatson authored Jan 31, 2017
2 parents 06766b4 + f11520a commit 7d4b8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ const Select = React.createClass({
this.setState({
isOpen: true,
inputValue: '',
focusedOption: this._focusedOption || options[dir === 'next' ? 0 : options.length - 1].option
focusedOption: this._focusedOption || (options.length ? options[dir === 'next' ? 0 : options.length - 1].option : null)
});
return;
}
Expand Down

0 comments on commit 7d4b8f0

Please sign in to comment.