Skip to content

Commit

Permalink
Fixes JedWatson#1447 - Uncaught TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
thezanke committed Dec 21, 2016
1 parent ef3a468 commit 7ef1013
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 @@ -709,7 +709,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 7ef1013

Please sign in to comment.