From cb5a445c75c7117c7c705d615099086274c2b254 Mon Sep 17 00:00:00 2001
From: afc163 <afc163@gmail.com>
Date: Fri, 11 Nov 2016 12:05:02 +0800
Subject: Fix list null error (ant-design/ant-design#3793)

---
 src/module/Select.jsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/module/Select.jsx')

diff --git a/src/module/Select.jsx b/src/module/Select.jsx
index 2ab9e61..fa4e5c4 100644
--- a/src/module/Select.jsx
+++ b/src/module/Select.jsx
@@ -69,6 +69,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;
-- 
cgit v1.2.3

