From fdead5abeff4a9ebaf323a5f5e695c2044ba1651 Mon Sep 17 00:00:00 2001
From: Wei Zhu <yesmeck@gmail.com>
Date: Sun, 19 Nov 2017 21:21:04 +0800
Subject: Add a noop onChange to remove react's warning

> Warning: Failed prop type: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
---
 src/TimePicker.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/TimePicker.jsx')

diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 9a91a2c..e3c5a79 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -285,6 +285,7 @@ export default class Picker extends Component {
             onFocus={onFocus}
             onBlur={onBlur}
             autoFocus={autoFocus}
+            onChange={noop}
           />
           <span className={`${prefixCls}-icon`}/>
         </span>
-- 
cgit v1.2.3

