[Glitch] Fix 'focus the compose textarea' shortcut is not working

Port 3c315a68af to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
y.takahashi 2024-02-02 15:33:53 +09:00 committed by Claire
parent cce3f3d6da
commit 3894674200
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,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();