]> cat aescling's git repositories - mastodon.git/commitdiff
refocus-after-toot (#3537)
authormasarakki <masaki182@gmail.com>
Sat, 3 Jun 2017 23:22:37 +0000 (08:22 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 3 Jun 2017 23:22:37 +0000 (01:22 +0200)
app/javascript/mastodon/features/compose/components/compose_form.js

index 5fa074f4bac24952e2bf0726370b89884a529b75..f8a9a94acf678a5ad9c45efe7a647d62d03f73da 100644 (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();
     }
   }