onClear: PropTypes.func,
use12Hours: PropTypes.bool,
addon: PropTypes.func,
+ focusOnOpen: PropTypes.bool,
};
static defaultProps = {
this.setState({ currentSelectPanel });
}
+ // https://github.com/ant-design/ant-design/issues/5829
+ close() {
+ this.props.onEsc();
+ }
+
render() {
const {
prefixCls, className, placeholder, disabledHours, disabledMinutes,
disabledSeconds, hideDisabledOptions, allowEmpty, showHour, showMinute, showSecond,
- format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear,
+ format, defaultOpenValue, clearText, onEsc, addon, use12Hours, onClear, focusOnOpen,
} = this.props;
const {
value, currentSelectPanel,
onChange={this.onChange}
onClear={onClear}
allowEmpty={allowEmpty}
+ focusOnOpen={focusOnOpen}
/>
<Combobox
prefixCls={prefixCls}