Skip to content

Commit 264abff

Browse files
committed
fix: date-picker autoFocus not work
1 parent 7ed6885 commit 264abff

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/date-picker/createPicker.js

+2
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ export default function createPicker (TheCalendar, props) {
169169
<input
170170
ref='input'
171171
disabled={props.disabled}
172+
onFocus={focus}
173+
onBlur={blur}
172174
readOnly
173175
value={(inputValue && inputValue.format(props.format)) || ''}
174176
placeholder={placeholder}

components/date-picker/interface.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const PickerProps = () => ({
3131
pickerClass: PropTypes.string,
3232
pickerInputClass: PropTypes.string,
3333
timePicker: PropTypes.any,
34+
autoFocus: PropTypes.bool,
3435
})
3536

3637
export const SinglePickerProps = () => ({

0 commit comments

Comments
 (0)