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

Commit

Permalink
Merge pull request #236 from rinsuki/after-posted-move-cursor-to-top
Browse files Browse the repository at this point in the history
投稿完了時にカーソルを先頭に持ってくるように
  • Loading branch information
takayamaki authored Jan 31, 2019
2 parents b4cc1a1 + 0855d10 commit 7bb6931
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 7bb6931

Please sign in to comment.