From 7ef10131cb688c9817bc246c36e1ae212ba6ac7a Mon Sep 17 00:00:00 2001 From: Alex Howard Date: Wed, 21 Dec 2016 18:58:06 -0500 Subject: [PATCH] Fixes #1447 - Uncaught TypeError --- src/Select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.js b/src/Select.js index bfeefc7554..f9d21911a2 100644 --- a/src/Select.js +++ b/src/Select.js @@ -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; }