onClose: PropTypes.func,
addon: PropTypes.func,
name: PropTypes.string,
+ autoComplete: PropTypes.string,
},
getDefaultProps() {
onEsc() {
this.setOpen(false);
- this.picker.focus();
+ this.focus();
},
onKeyDown(e) {
}
},
+ focus() {
+ this.picker.focus();
+ },
+
render() {
const {
prefixCls, placeholder, placement, align,
disabled, transitionName, style, className, showHour,
- showMinute, showSecond, getPopupContainer, name,
+ showMinute, showSecond, getPopupContainer, name, autoComplete,
} = this.props;
const { open, value } = this.state;
let popupClassName;
readOnly
onKeyDown={this.onKeyDown}
disabled={disabled} value={value && value.format(this.getFormat()) || ''}
+ autoComplete={autoComplete}
/>
<span className={`${prefixCls}-icon`}/>
</span>