Fix replying not automatically switching to compose form on mobile

This commit is contained in:
Thibaut Girka
2019-06-14 12:59:59 +02:00
committed by ThibG
parent c0e5f32d13
commit e433386545
3 changed files with 27 additions and 28 deletions

View File

@@ -66,8 +66,6 @@ class ComposeForm extends ImmutablePureComponent {
preselectOnReply: PropTypes.bool,
onChangeSpoilerness: PropTypes.func,
onChangeVisibility: PropTypes.func,
onMount: PropTypes.func,
onUnmount: PropTypes.func,
onPaste: PropTypes.func,
onMediaDescriptionConfirm: PropTypes.func,
};
@@ -196,22 +194,6 @@ class ComposeForm extends ImmutablePureComponent {
}
}
// Tells our state the composer has been mounted.
componentDidMount () {
const { onMount } = this.props;
if (onMount) {
onMount();
}
}
// Tells our state the composer has been unmounted.
componentWillUnmount () {
const { onUnmount } = this.props;
if (onUnmount) {
onUnmount();
}
}
handleFocus = () => {
if (this.composeForm) {
this.composeForm.scrollIntoView();