diff options
author | David Yip <yipdw@member.fsf.org> | 2018-09-29 19:00:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-29 19:00:31 -0500 |
commit | 19968912fae52917bdbbd73cdfc5d03a82a0d554 (patch) | |
tree | d225725eeef8d398d86a9aee15ee958c6d79dd3d /app | |
parent | 5b43d7bcbf27987642c16fccf213de984c150411 (diff) | |
parent | 9594c68532b3baeba340c426cf3490fa826fc017 (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.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 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. |