Scroll to textarea when composing a toot

master
Thibaut Girka 6 years ago
parent fa18859b20
commit 9594c68532
  1. 1
      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.

Loading…
Cancel
Save