aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-11-20 14:57:36 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-11-20 14:57:36 +0800
commit7702bb67968104a64fa85ba7e893bf2393eeb3c5 (patch)
tree6e29e2f103e9a25be9f6db046d0e0be87565b5e6 /src/TimePicker.jsx
parent1d08ffb2f913e1cc9d39fd56cf9d0522d3bf29bf (diff)
downloadtime-picker-7702bb67968104a64fa85ba7e893bf2393eeb3c5.tar.gz
time-picker-7702bb67968104a64fa85ba7e893bf2393eeb3c5.tar.zst
time-picker-7702bb67968104a64fa85ba7e893bf2393eeb3c5.zip
change value to null when clear input content to remove the react warning.
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx2
1 files changed, 1 insertions, 1 deletions
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({
75 }, 75 },
76 76
77 onPanelClear() { 77 onPanelClear() {
78 this.setValue(''); 78 this.setValue(null);
79 this.setOpen(false); 79 this.setOpen(false);
80 }, 80 },
81 81