Removed focus of compose/cw after submit or spoiler change

fixes: #21
This commit is contained in:
mgabdev 2019-07-17 18:49:52 -04:00
parent 6abffdb505
commit 2eea427148

View File

@ -174,14 +174,6 @@ class ComposeForm extends ImmutablePureComponent {
this.autosuggestTextarea.textarea.setSelectionRange(selectionStart, selectionEnd);
this.autosuggestTextarea.textarea.focus();
} else if(prevProps.isSubmitting && !this.props.isSubmitting) {
this.autosuggestTextarea.textarea.focus();
} else if (this.props.spoiler !== prevProps.spoiler) {
if (this.props.spoiler) {
this.spoilerText.input.focus();
} else {
this.autosuggestTextarea.textarea.focus();
}
}
}