aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorWei Zhu <yesmeck@gmail.com>2017-11-19 21:21:04 +0800
committerWei Zhu <yesmeck@gmail.com>2017-11-19 21:21:04 +0800
commitfdead5abeff4a9ebaf323a5f5e695c2044ba1651 (patch)
tree970c17dbff927dc8de400166e5e01b634f09c950 /src
parenta60ac4d8d3b9f527c10e5185265f322468781c81 (diff)
downloadtime-picker-fdead5abeff4a9ebaf323a5f5e695c2044ba1651.tar.gz
time-picker-fdead5abeff4a9ebaf323a5f5e695c2044ba1651.tar.zst
time-picker-fdead5abeff4a9ebaf323a5f5e695c2044ba1651.zip
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`.
Diffstat (limited to 'src')
-rw-r--r--src/TimePicker.jsx1
1 files changed, 1 insertions, 0 deletions
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 {
285 onFocus={onFocus} 285 onFocus={onFocus}
286 onBlur={onBlur} 286 onBlur={onBlur}
287 autoFocus={autoFocus} 287 autoFocus={autoFocus}
288 onChange={noop}
288 /> 289 />
289 <span className={`${prefixCls}-icon`}/> 290 <span className={`${prefixCls}-icon`}/>
290 </span> 291 </span>