refocus-after-toot (#3537)

lolsob-rspec
masarakki 2017-06-04 08:22:37 +09:00 committed by Eugen Rochko
parent aa6740c21b
commit dfbc77fa3b
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}
}