onPickEmoji: PropTypes.func,
showSearch: PropTypes.bool,
anyMedia: PropTypes.bool,
+ singleColumn: PropTypes.bool,
advancedOptions: ImmutablePropTypes.map,
layout: PropTypes.string,
}
handleFocus = () => {
- if (this.composeForm) {
+ if (this.composeForm && !this.props.singleColumn) {
this.composeForm.scrollIntoView();
}
}
preselectDate,
text,
preselectOnReply,
+ singleColumn,
} = this.props;
let selectionEnd, selectionStart;
if (textarea) {
textarea.setSelectionRange(selectionStart, selectionEnd);
textarea.focus();
- textarea.scrollIntoView();
+ if (!singleColumn) textarea.scrollIntoView();
}
// Refocuses the textarea after submitting.