allowEmpty: PropTypes.bool,
defaultOpenValue: PropTypes.object,
currentSelectPanel: PropTypes.string,
+ focusOnOpen: PropTypes.bool,
+ onKeyDown: PropTypes.func,
};
constructor(props) {
onClear: PropTypes.func,
use12Hours: PropTypes.bool,
addon: PropTypes.func,
+ focusOnOpen: PropTypes.bool,
+ onKeyDown: PropTypes.func,
};
static defaultProps = {
const {
prefixCls, className, placeholder, disabledHours, disabledMinutes,
disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond,
- format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen,
- format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, onKeyDown,
++ format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen, onKeyDown,
} = this.props;
const {
value, currentSelectPanel,
onChange={this.onChange}
onClear={onClear}
allowEmpty={allowEmpty}
+ focusOnOpen={focusOnOpen}
+ onKeyDown={onKeyDown}
/>
<Combobox
prefixCls={prefixCls}
name: PropTypes.string,
autoComplete: PropTypes.string,
use12Hours: PropTypes.bool,
+ focusOnOpen: PropTypes.bool,
+ onKeyDown: PropTypes.func,
};
static defaultProps = {
onChange: noop,
onOpen: noop,
onClose: noop,
+ onFocus: noop,
+ onBlur: noop,
addon: noop,
use12Hours: false,
+ focusOnOpen: false,
+ onKeyDown: noop,
};
constructor(props) {
prefixCls, placeholder, disabledHours,
disabledMinutes, disabledSeconds, hideDisabledOptions,
allowEmpty, showHour, showMinute, showSecond, defaultOpenValue, clearText,
- addon, use12Hours, focusOnOpen,
- addon, use12Hours, onKeyDown,
++ addon, use12Hours, focusOnOpen, onKeyDown,
} = this.props;
return (
<Panel
hideDisabledOptions={hideDisabledOptions}
use12Hours={use12Hours}
addon={addon}
+ focusOnOpen={focusOnOpen}
+ onKeyDown={onKeyDown}
/>
);
}