diff options
author | masarakki <masaki182@gmail.com> | 2017-06-04 08:22:37 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-04 01:22:37 +0200 |
commit | 20b647020bf8de2af6d2ce44ed76566d137dd1f6 (patch) | |
tree | 6dfd8f64846445ee309dc4341e6192ecb0652326 /app | |
parent | 3eedad27375721aaaa6e8397124989e4ead771a9 (diff) |
refocus-after-toot (#3537)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/compose/components/compose_form.js | 2 |
1 files 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 index 5fa074f4b..f8a9a94ac 100644 --- 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(); } } |