Scroll to textarea when composing a toot

This commit is contained in:
Thibaut Girka 2018-09-28 18:44:55 +02:00
parent fa18859b20
commit 9594c68532

View file

@ -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.