Scroll to textarea when composing a toot

lolsob-rspec
Thibaut Girka 2018-09-28 18:44:55 +02:00
parent c454db6f11
commit d27b7d7645
1 changed files with 1 additions and 0 deletions

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.