From e75ed0c6b89282cf475e94d6d5ad0fb35803f974 Mon Sep 17 00:00:00 2001
From: MG12 <wuzhao.mail@gmail.com>
Date: Thu, 19 Nov 2015 11:59:53 +0800
Subject: update placement handle

---
 src/TimePicker.jsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/TimePicker.jsx')

diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index a6ea7a9..98a1754 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -50,8 +50,11 @@ const Picker = React.createClass({
 
   getInitialState() {
     this.savePanelRef = refFn.bind(this, 'panelInstance');
-    const { open, value } = this.props;
-    return { open, value };
+    const { open, defaultValue } = this.props;
+    return {
+      open: open,
+      value: defaultValue,
+    };
   },
 
   componentWillReceiveProps(nextProps) {
-- 
cgit v1.2.3

