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 deeba52..957c021 100644
--- a/src/Panel.jsx
+++ b/src/Panel.jsx
@@ -41,6 +41,7 @@ class Panel extends Component {
41 use12Hours: PropTypes.bool, 41 use12Hours: PropTypes.bool,
42 addon: PropTypes.func, 42 addon: PropTypes.func,
43 focusOnOpen: PropTypes.bool, 43 focusOnOpen: PropTypes.bool,
44 onKeyDown: PropTypes.func,
44 }; 45 };
45 46
46 static defaultProps = { 47 static defaultProps = {
@@ -53,6 +54,7 @@ class Panel extends Component {
53 defaultOpenValue: moment(), 54 defaultOpenValue: moment(),
54 use12Hours: false, 55 use12Hours: false,
55 addon: noop, 56 addon: noop,
57 onKeyDown: noop,
56 }; 58 };
57 59
58 constructor(props) { 60 constructor(props) {
@@ -90,7 +92,7 @@ class Panel extends Component {
90 const { 92 const {
91 prefixCls, className, placeholder, disabledHours, disabledMinutes, 93 prefixCls, className, placeholder, disabledHours, disabledMinutes,
92 disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond, 94 disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond,
93 format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen, 95 format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen, onKeyDown,
94 } = this.props; 96 } = this.props;
95 const { 97 const {
96 value, currentSelectPanel, 98 value, currentSelectPanel,
@@ -124,6 +126,7 @@ class Panel extends Component {
124 onClear={onClear} 126 onClear={onClear}
125 allowEmpty={allowEmpty} 127 allowEmpty={allowEmpty}
126 focusOnOpen={focusOnOpen} 128 focusOnOpen={focusOnOpen}
129 onKeyDown={onKeyDown}
127 /> 130 />
128 <Combobox 131 <Combobox
129 prefixCls={prefixCls} 132 prefixCls={prefixCls}