aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Panel.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Panel.jsx')
-rw-r--r--src/Panel.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Panel.jsx b/src/Panel.jsx
index 468eb37..4e09b57 100644
--- a/src/Panel.jsx
+++ b/src/Panel.jsx
@@ -43,6 +43,7 @@ class Panel extends Component {
43 minuteStep: PropTypes.number, 43 minuteStep: PropTypes.number,
44 secondStep: PropTypes.number, 44 secondStep: PropTypes.number,
45 addon: PropTypes.func, 45 addon: PropTypes.func,
46 onKeyDown: PropTypes.func,
46 }; 47 };
47 48
48 static defaultProps = { 49 static defaultProps = {
@@ -55,6 +56,7 @@ class Panel extends Component {
55 defaultOpenValue: moment(), 56 defaultOpenValue: moment(),
56 use12Hours: false, 57 use12Hours: false,
57 addon: noop, 58 addon: noop,
59 onKeyDown: noop,
58 }; 60 };
59 61
60 constructor(props) { 62 constructor(props) {
@@ -92,7 +94,7 @@ class Panel extends Component {
92 const { 94 const {
93 prefixCls, className, placeholder, disabledHours, disabledMinutes, 95 prefixCls, className, placeholder, disabledHours, disabledMinutes,
94 disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond, 96 disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond,
95 format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, 97 format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, onKeyDown,
96 hourStep, minuteStep, secondStep, 98 hourStep, minuteStep, secondStep,
97 } = this.props; 99 } = this.props;
98 const { 100 const {
@@ -132,6 +134,7 @@ class Panel extends Component {
132 onChange={this.onChange} 134 onChange={this.onChange}
133 onClear={onClear} 135 onClear={onClear}
134 allowEmpty={allowEmpty} 136 allowEmpty={allowEmpty}
137 onKeyDown={onKeyDown}
135 /> 138 />
136 <Combobox 139 <Combobox
137 prefixCls={prefixCls} 140 prefixCls={prefixCls}