1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-04 01:38:17 +09:00

Fix 'focus the compose textarea' shortcut is not working (#29059)

This commit is contained in:
y.takahashi 2024-02-02 15:33:53 +09:00 committed by GitHub
parent 1726085db5
commit 3c315a68af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -438,7 +438,7 @@ class UI extends PureComponent {
handleHotkeyNew = e => {
e.preventDefault();
const element = this.node.querySelector('.compose-form__autosuggest-wrapper textarea');
const element = this.node.querySelector('.autosuggest-textarea__textarea');
if (element) {
element.focus();