1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-03-28 22:38:12 +01:00

refocus-after-toot ()

This commit is contained in:
masarakki 2017-06-04 08:22:37 +09:00 committed by Eugen Rochko
parent 3eedad2737
commit 20b647020b

View file

@ -119,6 +119,8 @@ class ComposeForm extends ImmutablePureComponent {
this.autosuggestTextarea.textarea.setSelectionRange(selectionStart, selectionEnd);
this.autosuggestTextarea.textarea.focus();
} else if(prevProps.is_submitting && !this.props.is_submitting) {
this.autosuggestTextarea.textarea.focus();
}
}