aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index 6e16457..271515d 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 onKeyDown: PropTypes.func,
51 }; 52 };
52 53
53 static defaultProps = { 54 static defaultProps = {
@@ -75,6 +76,7 @@ export default class Picker extends Component {
75 onBlur: noop, 76 onBlur: noop,
76 addon: noop, 77 addon: noop,
77 use12Hours: false, 78 use12Hours: false,
79 onKeyDown: noop,
78 }; 80 };
79 81
80 constructor(props) { 82 constructor(props) {
@@ -161,7 +163,7 @@ export default class Picker extends Component {
161 prefixCls, placeholder, disabledHours, 163 prefixCls, placeholder, disabledHours,
162 disabledMinutes, disabledSeconds, hideDisabledOptions, 164 disabledMinutes, disabledSeconds, hideDisabledOptions,
163 allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, 165 allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText,
164 addon, use12Hours, 166 addon, use12Hours, onKeyDown,
165 } = this.props; 167 } = this.props;
166 return ( 168 return (
167 <Panel 169 <Panel
@@ -185,6 +187,7 @@ export default class Picker extends Component {
185 hideDisabledOptions={hideDisabledOptions} 187 hideDisabledOptions={hideDisabledOptions}
186 use12Hours={use12Hours} 188 use12Hours={use12Hours}
187 addon={addon} 189 addon={addon}
190 onKeyDown={onKeyDown}
188 /> 191 />
189 ); 192 );
190 } 193 }