Merge pull request #754 from ThibG/glitch-soc/fixes/scroll-compose-into-view

Scroll to textarea when composing a toot
This commit is contained in:
David Yip 2018-09-29 19:00:31 -05:00 committed by GitHub
commit 19968912fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -347,6 +347,7 @@ class Composer extends React.Component {
if (textarea) {
textarea.setSelectionRange(selectionStart, selectionEnd);
textarea.focus();
textarea.scrollIntoView();
}
// Refocuses the textarea after submitting.