focusOnOpen: PropTypes.bool,
onKeyDown: PropTypes.func,
autoFocus: PropTypes.bool,
+ id: PropTypes.string,
};
static defaultProps = {
use12Hours: false,
focusOnOpen: false,
onKeyDown: noop,
+ id: '',
};
constructor(props) {
render() {
const {
- prefixCls, placeholder, placement, align,
+ prefixCls, placeholder, placement, align, id,
disabled, transitionName, style, className, getPopupContainer, name, autoComplete,
onFocus, onBlur, autoFocus, inputReadOnly,
} = this.props;
autoFocus={autoFocus}
onChange={noop}
readOnly={!!inputReadOnly}
+ id={id}
/>
<span className={`${prefixCls}-icon`}/>
</span>