Skip to content

Commit

Permalink
Scroll to compose form rather than reply indicator on focus (mastodon…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and hiyuki2578 committed Oct 2, 2019
1 parent aa422e6 commit ba4d395
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit ba4d395

Please sign in to comment.