about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-09-29 19:00:31 -0500
committerGitHub <noreply@github.com>2018-09-29 19:00:31 -0500
commit19968912fae52917bdbbd73cdfc5d03a82a0d554 (patch)
treed225725eeef8d398d86a9aee15ee958c6d79dd3d /app
parent5b43d7bcbf27987642c16fccf213de984c150411 (diff)
parent9594c68532b3baeba340c426cf3490fa826fc017 (diff)
Merge pull request #754 from ThibG/glitch-soc/fixes/scroll-compose-into-view
Scroll to textarea when composing a toot
Diffstat (limited to 'app')
-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 c1bd77844..522f9d798 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.