Permalink
Browse files

Fixes JedWatson#1447 - Uncaught TypeError

  • Loading branch information...
thezanke committed Dec 21, 2016
1 parent ef3a468 commit 7ef10131cb688c9817bc246c36e1ae212ba6ac7a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Select.js
View
@@ -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;
}

0 comments on commit 7ef1013

Please sign in to comment.