Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
投稿完了時にカーソルを先頭に持ってくるように
Browse files Browse the repository at this point in the history
imas#210 と同等
  • Loading branch information
rinsuki committed Jan 29, 2019
1 parent b4cc1a1 commit 0855d10
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0855d10

Please sign in to comment.