onOpen: PropTypes.func,
onClose: PropTypes.func,
addon: PropTypes.func,
+ name: PropTypes.string,
},
getDefaultProps() {
const {
prefixCls, placeholder, placement, align,
disabled, transitionName, style, className, showHour,
- showMinute, showSecond, getPopupContainer,
+ showMinute, showSecond, getPopupContainer, name,
} = this.props;
const { open, value } = this.state;
let popupClassName;
<input
className={`${prefixCls}-input`}
ref="picker" type="text" placeholder={placeholder}
+ name={name}
readOnly
onKeyDown={this.onKeyDown}
disabled={disabled} value={value && value.format(this.getFormat()) || ''}