Scroll to compose form rather than reply indicator on focus (#11182)

lolsob-rspec
ThibG 2019-06-26 14:28:36 +02:00 committed by Eugen Rochko
parent 9a216634a1
commit 1af85ca177
1 changed files with 2 additions and 2 deletions

View File

@ -188,12 +188,12 @@ class ComposeForm extends ImmutablePureComponent {
}
return (
<div className='compose-form' ref={this.setRef}>
<div className='compose-form'>
<WarningContainer />
<ReplyIndicatorContainer />
<div className={`spoiler-input ${this.props.spoiler ? 'spoiler-input--visible' : ''}`}>
<div className={`spoiler-input ${this.props.spoiler ? 'spoiler-input--visible' : ''}`} ref={this.setRef}>
<AutosuggestInput
placeholder={intl.formatMessage(messages.spoiler_placeholder)}
value={this.props.spoilerText}