aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--src/TimePicker.jsx3
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4a36815..c994218 100644
--- a/README.md
+++ b/README.md
@@ -73,7 +73,6 @@ API
73| transitionName | String | '' | | 73| transitionName | String | '' | |
74| name | String | nothing | sets the name of the generated input | 74| name | String | nothing | sets the name of the generated input |
75 75
76
77## Test Case 76## Test Case
78 77
79``` 78```
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index da47ac4..7d2395d 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() {
@@ -190,6 +191,7 @@ const Picker = React.createClass({
190 prefixCls, placeholder, placement, align, 191 prefixCls, placeholder, placement, align,
191 disabled, transitionName, style, className, showHour, 192 disabled, transitionName, style, className, showHour,
192 showMinute, showSecond, getPopupContainer, name, 193 showMinute, showSecond, getPopupContainer, name,
194 showSecond, getPopupContainer, autoComplete,
193 } = this.props; 195 } = this.props;
194 const { open, value } = this.state; 196 const { open, value } = this.state;
195 let popupClassName; 197 let popupClassName;
@@ -221,6 +223,7 @@ const Picker = React.createClass({
221 readOnly 223 readOnly
222 onKeyDown={this.onKeyDown} 224 onKeyDown={this.onKeyDown}
223 disabled={disabled} value={value && value.format(this.getFormat()) || ''} 225 disabled={disabled} value={value && value.format(this.getFormat()) || ''}
226 autoComplete={autoComplete}
224 /> 227 />
225 <span className={`${prefixCls}-icon`}/> 228 <span className={`${prefixCls}-icon`}/>
226 </span> 229 </span>