mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Merge pull request #754 from ThibG/glitch-soc/fixes/scroll-compose-into-view
Scroll to textarea when composing a toot
This commit is contained in:
commit
19968912fa
@ -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 New Issue
Block a user