mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-25 12:34:58 +01:00
Fix 'focus the compose textarea' shortcut is not working (#29059)
This commit is contained in:
parent
1726085db5
commit
3c315a68af
@ -438,7 +438,7 @@ class UI extends PureComponent {
|
|||||||
handleHotkeyNew = e => {
|
handleHotkeyNew = e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const element = this.node.querySelector('.compose-form__autosuggest-wrapper textarea');
|
const element = this.node.querySelector('.autosuggest-textarea__textarea');
|
||||||
|
|
||||||
if (element) {
|
if (element) {
|
||||||
element.focus();
|
element.focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user