diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | src/TimePicker.jsx | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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 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> |