]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Merge branch 'master' of github.com:react-component/time-picker
authorafc163 <afc163@gmail.com>
Fri, 11 Nov 2016 04:10:26 +0000 (12:10 +0800)
committerafc163 <afc163@gmail.com>
Fri, 11 Nov 2016 04:10:26 +0000 (12:10 +0800)
src/Select.jsx

index e25bb294ca9d96d3ad0933a697e11493929bd96a..238a776811cc913eb21feb389c17b40b91f3d6a5 100644 (file)
@@ -75,6 +75,9 @@ const Select = React.createClass({
     // move to selected item
     const select = ReactDom.findDOMNode(this);
     const list = ReactDom.findDOMNode(this.refs.list);
+    if (!list) {
+      return;
+    }
     let index = this.props.selectedIndex;
     if (index < 0) {
       index = 0;