fix: date-picker `autoFocus` not work

pull/165/head
tjz 2018-06-09 11:46:03 +08:00
parent f2fa197cb0
commit 100d606aa0
2 changed files with 3 additions and 0 deletions

View File

@ -169,6 +169,8 @@ export default function createPicker (TheCalendar, props) {
<input
ref='input'
disabled={props.disabled}
onFocus={focus}
onBlur={blur}
readOnly
value={(inputValue && inputValue.format(props.format)) || ''}
placeholder={placeholder}

View File

@ -31,6 +31,7 @@ export const PickerProps = () => ({
pickerClass: PropTypes.string,
pickerInputClass: PropTypes.string,
timePicker: PropTypes.any,
autoFocus: PropTypes.bool,
})
export const SinglePickerProps = () => ({