aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index aa3e0da..4d7d4d6 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -42,6 +42,7 @@ const Picker = React.createClass({
42 onClose: PropTypes.func, 42 onClose: PropTypes.func,
43 addon: PropTypes.func, 43 addon: PropTypes.func,
44 name: PropTypes.string, 44 name: PropTypes.string,
45 autoComplete: PropTypes.string,
45 }, 46 },
46 47
47 getDefaultProps() { 48 getDefaultProps() {
@@ -193,7 +194,7 @@ const Picker = React.createClass({
193 const { 194 const {
194 prefixCls, placeholder, placement, align, 195 prefixCls, placeholder, placement, align,
195 disabled, transitionName, style, className, showHour, 196 disabled, transitionName, style, className, showHour,
196 showMinute, showSecond, getPopupContainer, name, 197 showMinute, showSecond, getPopupContainer, name, autoComplete,
197 } = this.props; 198 } = this.props;
198 const { open, value } = this.state; 199 const { open, value } = this.state;
199 let popupClassName; 200 let popupClassName;
@@ -225,6 +226,7 @@ const Picker = React.createClass({
225 readOnly 226 readOnly
226 onKeyDown={this.onKeyDown} 227 onKeyDown={this.onKeyDown}
227 disabled={disabled} value={value && value.format(this.getFormat()) || ''} 228 disabled={disabled} value={value && value.format(this.getFormat()) || ''}
229 autoComplete={autoComplete}
228 /> 230 />
229 <span className={`${prefixCls}-icon`}/> 231 <span className={`${prefixCls}-icon`}/>
230 </span> 232 </span>