fix: date-picker `autoFocus` not work
parent
f2fa197cb0
commit
100d606aa0
|
@ -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}
|
||||
|
|
|
@ -31,6 +31,7 @@ export const PickerProps = () => ({
|
|||
pickerClass: PropTypes.string,
|
||||
pickerInputClass: PropTypes.string,
|
||||
timePicker: PropTypes.any,
|
||||
autoFocus: PropTypes.bool,
|
||||
})
|
||||
|
||||
export const SinglePickerProps = () => ({
|
||||
|
|
Loading…
Reference in New Issue