Skip to content

Commit

Permalink
fix: date-picker autoFocus not work
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 9, 2018
1 parent 7ed6885 commit 264abff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/date-picker/createPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
1 change: 1 addition & 0 deletions components/date-picker/interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const PickerProps = () => ({
pickerClass: PropTypes.string,
pickerInputClass: PropTypes.string,
timePicker: PropTypes.any,
autoFocus: PropTypes.bool,
})

export const SinglePickerProps = () => ({
Expand Down

0 comments on commit 264abff

Please sign in to comment.