From 7702bb67968104a64fa85ba7e893bf2393eeb3c5 Mon Sep 17 00:00:00 2001
From: MG12 <wuzhao.mail@gmail.com>
Date: Fri, 20 Nov 2015 14:57:36 +0800
Subject: change value to null when clear input content to remove the react
 warning.

---
 src/TimePicker.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/TimePicker.jsx')

diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 060446a..e82b46f 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -75,7 +75,7 @@ const Picker = React.createClass({
   },
 
   onPanelClear() {
-    this.setValue('');
+    this.setValue(null);
     this.setOpen(false);
   },
 
-- 
cgit v1.2.3

