mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-20 05:44:01 +00:00
Scroll to textarea when composing a toot
This commit is contained in:
parent
fa18859b20
commit
9594c68532
|
@ -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…
Reference in a new issue