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
dc8da22a73
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue