|
|
@ -60,6 +60,7 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
onPickEmoji: PropTypes.func.isRequired, |
|
|
|
onPickEmoji: PropTypes.func.isRequired, |
|
|
|
showSearch: PropTypes.bool, |
|
|
|
showSearch: PropTypes.bool, |
|
|
|
anyMedia: PropTypes.bool, |
|
|
|
anyMedia: PropTypes.bool, |
|
|
|
|
|
|
|
singleColumn: PropTypes.bool, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static defaultProps = { |
|
|
|
static defaultProps = { |
|
|
@ -115,7 +116,7 @@ class ComposeForm extends ImmutablePureComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
handleFocus = () => { |
|
|
|
handleFocus = () => { |
|
|
|
if (this.composeForm) { |
|
|
|
if (this.composeForm && !this.props.singleColumn) { |
|
|
|
this.composeForm.scrollIntoView(); |
|
|
|
this.composeForm.scrollIntoView(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|