about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-28 18:44:55 +0200
committerThibaut Girka <thib@sitedethib.com>2018-09-28 18:44:55 +0200
commit9594c68532b3baeba340c426cf3490fa826fc017 (patch)
tree8ef8d2675f86fc37171bcbcba4d18f7883145caf /app/javascript/flavours/glitch/features
parentfa18859b206bbfd61e08a8f8b39de972dcf3b440 (diff)
Scroll to textarea when composing a toot
Diffstat (limited to 'app/javascript/flavours/glitch/features')
-rw-r--r--app/javascript/flavours/glitch/features/composer/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/index.js b/app/javascript/flavours/glitch/features/composer/index.js
index ff01408e7..0820ab2e3 100644
--- a/app/javascript/flavours/glitch/features/composer/index.js
+++ b/app/javascript/flavours/glitch/features/composer/index.js
@@ -347,6 +347,7 @@ class Composer extends React.Component {
       if (textarea) {
         textarea.setSelectionRange(selectionStart, selectionEnd);
         textarea.focus();
+        textarea.scrollIntoView();
       }
 
     //  Refocuses the textarea after submitting.