Browse Source

refocus-after-toot (#3537)

closed-social-v3
masarakki 7 years ago
committed by Eugen Rochko
parent
commit
20b647020b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/javascript/mastodon/features/compose/components/compose_form.js

+ 2
- 0
app/javascript/mastodon/features/compose/components/compose_form.js 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();
}
}

Loading…
Cancel
Save