From: Eugen Rochko Date: Fri, 15 Jun 2018 17:49:32 +0000 (+0200) Subject: Fix regression where CW is focused on reply (#7811) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=09147186b79f80cf3ef3aa8ba7e6e5e032faa255;p=mastodon.git Fix regression where CW is focused on reply (#7811) --- diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js index 83f2f4d34..6eb01123e 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -127,9 +127,7 @@ export default class ComposeForm extends ImmutablePureComponent { this.autosuggestTextarea.textarea.focus(); } else if(prevProps.is_submitting && !this.props.is_submitting) { this.autosuggestTextarea.textarea.focus(); - } - - if (this.props.spoiler !== prevProps.spoiler) { + } else if (this.props.spoiler !== prevProps.spoiler) { if (this.props.spoiler) { this.spoilerText.focus(); } else {