diff options
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 271515d..70327d7 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -48,6 +48,7 @@ export default class Picker extends Component { | |||
48 | name: PropTypes.string, | 48 | name: PropTypes.string, |
49 | autoComplete: PropTypes.string, | 49 | autoComplete: PropTypes.string, |
50 | use12Hours: PropTypes.bool, | 50 | use12Hours: PropTypes.bool, |
51 | focusOnOpen: PropTypes.bool, | ||
51 | onKeyDown: PropTypes.func, | 52 | onKeyDown: PropTypes.func, |
52 | }; | 53 | }; |
53 | 54 | ||
@@ -76,6 +77,7 @@ export default class Picker extends Component { | |||
76 | onBlur: noop, | 77 | onBlur: noop, |
77 | addon: noop, | 78 | addon: noop, |
78 | use12Hours: false, | 79 | use12Hours: false, |
80 | focusOnOpen: false, | ||
79 | onKeyDown: noop, | 81 | onKeyDown: noop, |
80 | }; | 82 | }; |
81 | 83 | ||
@@ -163,7 +165,7 @@ export default class Picker extends Component { | |||
163 | prefixCls, placeholder, disabledHours, | 165 | prefixCls, placeholder, disabledHours, |
164 | disabledMinutes, disabledSeconds, hideDisabledOptions, | 166 | disabledMinutes, disabledSeconds, hideDisabledOptions, |
165 | allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, | 167 | allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, |
166 | addon, use12Hours, onKeyDown, | 168 | addon, use12Hours, focusOnOpen, onKeyDown, |
167 | } = this.props; | 169 | } = this.props; |
168 | return ( | 170 | return ( |
169 | <Panel | 171 | <Panel |
@@ -187,6 +189,7 @@ export default class Picker extends Component { | |||
187 | hideDisabledOptions={hideDisabledOptions} | 189 | hideDisabledOptions={hideDisabledOptions} |
188 | use12Hours={use12Hours} | 190 | use12Hours={use12Hours} |
189 | addon={addon} | 191 | addon={addon} |
192 | focusOnOpen={focusOnOpen} | ||
190 | onKeyDown={onKeyDown} | 193 | onKeyDown={onKeyDown} |
191 | /> | 194 | /> |
192 | ); | 195 | ); |