From 20b647020bf8de2af6d2ce44ed76566d137dd1f6 Mon Sep 17 00:00:00 2001 From: masarakki Date: Sun, 4 Jun 2017 08:22:37 +0900 Subject: refocus-after-toot (#3537) --- app/javascript/mastodon/features/compose/components/compose_form.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/javascript') 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(); } } -- cgit