fix: date-picker `autoFocus` not work
parent
f2fa197cb0
commit
100d606aa0
|
@ -169,6 +169,8 @@ export default function createPicker (TheCalendar, props) {
|
||||||
<input
|
<input
|
||||||
ref='input'
|
ref='input'
|
||||||
disabled={props.disabled}
|
disabled={props.disabled}
|
||||||
|
onFocus={focus}
|
||||||
|
onBlur={blur}
|
||||||
readOnly
|
readOnly
|
||||||
value={(inputValue && inputValue.format(props.format)) || ''}
|
value={(inputValue && inputValue.format(props.format)) || ''}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
|
|
@ -31,6 +31,7 @@ export const PickerProps = () => ({
|
||||||
pickerClass: PropTypes.string,
|
pickerClass: PropTypes.string,
|
||||||
pickerInputClass: PropTypes.string,
|
pickerInputClass: PropTypes.string,
|
||||||
timePicker: PropTypes.any,
|
timePicker: PropTypes.any,
|
||||||
|
autoFocus: PropTypes.bool,
|
||||||
})
|
})
|
||||||
|
|
||||||
export const SinglePickerProps = () => ({
|
export const SinglePickerProps = () => ({
|
||||||
|
|
Loading…
Reference in New Issue