about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-06-25 22:57:56 +0200
committermultiple creatures <dev@multiple-creature.party>2020-02-22 01:43:21 -0600
commit6d51d5ebe0ea60778010f78ac12b8d012ee5a938 (patch)
tree280223387b08ec03c637916afc6c4dd7ec00bec2 /app/javascript/flavours
parenta6906db3f32257112ac14bf2cd41821f0c334db1 (diff)
Scroll to compose form rather than reply indicator on focus
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/features/compose/components/compose_form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/components/compose_form.js b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
index c018f39d5..4644e6d24 100644
--- a/app/javascript/flavours/glitch/features/compose/components/compose_form.js
+++ b/app/javascript/flavours/glitch/features/compose/components/compose_form.js
@@ -309,12 +309,12 @@ class ComposeForm extends ImmutablePureComponent {
     let nickname = (this.props.account !== undefined) ? this.props.account.get('identity') : '';
 
     return (
-      <div className='composer' ref={this.setRef}>
+      <div className='composer'>
         <WarningContainer />
 
         <ReplyIndicatorContainer />
 
-        <div className={`composer--spoiler ${spoiler ? 'composer--spoiler--visible' : ''}`}>
+        <div className={`composer--spoiler ${spoiler ? 'composer--spoiler--visible' : ''}`} ref={this.setRef}>
           <AutosuggestInput
             placeholder={intl.formatMessage(messages.spoiler_placeholder)}
             value={spoilerText}