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 26166f4..1a374f2 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -53,6 +53,7 @@ export default class Picker extends Component {
53 minuteStep: PropTypes.number, 53 minuteStep: PropTypes.number,
54 secondStep: PropTypes.number, 54 secondStep: PropTypes.number,
55 focusOnOpen: PropTypes.bool, 55 focusOnOpen: PropTypes.bool,
56 closeOnEsc: PropTypes.bool,
56 onKeyDown: PropTypes.func, 57 onKeyDown: PropTypes.func,
57 autoFocus: PropTypes.bool, 58 autoFocus: PropTypes.bool,
58 id: PropTypes.string, 59 id: PropTypes.string,
@@ -86,6 +87,7 @@ export default class Picker extends Component {
86 addon: noop, 87 addon: noop,
87 use12Hours: false, 88 use12Hours: false,
88 focusOnOpen: false, 89 focusOnOpen: false,
90 closeOnEsc: true,
89 onKeyDown: noop, 91 onKeyDown: noop,
90 }; 92 };
91 93
@@ -173,7 +175,7 @@ export default class Picker extends Component {
173 prefixCls, placeholder, disabledHours, 175 prefixCls, placeholder, disabledHours,
174 disabledMinutes, disabledSeconds, hideDisabledOptions, inputReadOnly, 176 disabledMinutes, disabledSeconds, hideDisabledOptions, inputReadOnly,
175 allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText, 177 allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText,
176 addon, use12Hours, focusOnOpen, onKeyDown, hourStep, minuteStep, secondStep, 178 addon, use12Hours, focusOnOpen, closeOnEsc, onKeyDown, hourStep, minuteStep, secondStep,
177 } = this.props; 179 } = this.props;
178 return ( 180 return (
179 <Panel 181 <Panel
@@ -202,6 +204,7 @@ export default class Picker extends Component {
202 secondStep={secondStep} 204 secondStep={secondStep}
203 addon={addon} 205 addon={addon}
204 focusOnOpen={focusOnOpen} 206 focusOnOpen={focusOnOpen}
207 closeOnEsc={closeOnEsc}
205 onKeyDown={onKeyDown} 208 onKeyDown={onKeyDown}
206 /> 209 />
207 ); 210 );