about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-26 14:28:36 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-26 14:28:36 +0200
commit32a44949265e9f0d64b5f94597631385ca17b414 (patch)
tree34b322b688bc913ef54dffa296a53c3838327053
parent5b20284f6f7ebb2514d81fb27fcaa40f8edf14ff (diff)
Scroll to compose form rather than reply indicator on focus (#11182)
-rw-r--r--app/javascript/mastodon/features/compose/components/compose_form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js
index c846ad6e7..1f476397f 100644
--- a/app/javascript/mastodon/features/compose/components/compose_form.js
+++ b/app/javascript/mastodon/features/compose/components/compose_form.js
@@ -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}