commit: 20b647020bf8de2af6d2ce44ed76566d137dd1f6
parent: 3eedad27375721aaaa6e8397124989e4ead771a9
Author: masarakki <masaki182@gmail.com>
Date: Sun, 4 Jun 2017 08:22:37 +0900
refocus-after-toot (#3537)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js
@@ -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();
}
}