diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-09-28 18:44:55 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-09-28 18:44:55 +0200 |
commit | 9594c68532b3baeba340c426cf3490fa826fc017 (patch) | |
tree | 8ef8d2675f86fc37171bcbcba4d18f7883145caf | |
parent | fa18859b206bbfd61e08a8f8b39de972dcf3b440 (diff) |
Scroll to textarea when composing a toot
-rw-r--r-- | app/javascript/flavours/glitch/features/composer/index.js | 1 |
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. |