Browse Source

Fix regression where CW is focused on reply (#7811)

master
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
09147186b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      app/javascript/mastodon/features/compose/components/compose_form.js

+ 1
- 3
app/javascript/mastodon/features/compose/components/compose_form.js View File

@ -127,9 +127,7 @@ export default class ComposeForm extends ImmutablePureComponent {
this.autosuggestTextarea.textarea.focus();
} else if(prevProps.is_submitting && !this.props.is_submitting) {
this.autosuggestTextarea.textarea.focus();
}
if (this.props.spoiler !== prevProps.spoiler) {
} else if (this.props.spoiler !== prevProps.spoiler) {
if (this.props.spoiler) {
this.spoilerText.focus();
} else {

Loading…
Cancel
Save