mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-27 13:16:07 +00:00
Fix focusing composer textarea on “new toot” hotkey
This commit is contained in:
@@ -269,7 +269,7 @@ export default class UI extends React.Component {
|
||||
handleHotkeyNew = e => {
|
||||
e.preventDefault();
|
||||
|
||||
const element = this.node.querySelector('.compose-form__autosuggest-wrapper textarea');
|
||||
const element = this.node.querySelector('.composer--textarea textarea');
|
||||
|
||||
if (element) {
|
||||
element.focus();
|
||||
|
||||
Reference in New Issue
Block a user