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

Scroll to textarea when composing a toot
master
David Yip 6 years ago committed by GitHub
commit 19968912fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/javascript/flavours/glitch/features/composer/index.js

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

Loading…
Cancel
Save