From 0855d1050c5a564d384822976acfc132381265d0 Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Wed, 30 Jan 2019 06:25:12 +0900 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E7=A8=BF=E5=AE=8C=E4=BA=86=E6=99=82?= =?UTF-8?q?=E3=81=AB=E3=82=AB=E3=83=BC=E3=82=BD=E3=83=AB=E3=82=92=E5=85=88?= =?UTF-8?q?=E9=A0=AD=E3=81=AB=E6=8C=81=E3=81=A3=E3=81=A6=E3=81=8F=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/imas/mastodon/pull/210 と同等 --- .../mastodon/features/compose/components/compose_form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/features/compose/components/compose_form.js b/app/javascript/mastodon/features/compose/components/compose_form.js index 1d38353b6b6af6..fd9744aeb5bfc4 100644 --- a/app/javascript/mastodon/features/compose/components/compose_form.js +++ b/app/javascript/mastodon/features/compose/components/compose_form.js @@ -152,6 +152,7 @@ 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.setSelectionRange(0, 0); this.autosuggestTextarea.textarea.focus(); } else if (this.props.spoiler !== prevProps.spoiler) { if (this.props.spoiler) {