mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-25 16:24:00 +00:00
Fix focusing composer textarea on “new toot” hotkey
This commit is contained in:
parent
037228cf03
commit
c600bcfe1d
|
@ -269,7 +269,7 @@ export default class UI extends React.Component {
|
||||||
handleHotkeyNew = e => {
|
handleHotkeyNew = e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
const element = this.node.querySelector('.compose-form__autosuggest-wrapper textarea');
|
const element = this.node.querySelector('.composer--textarea textarea');
|
||||||
|
|
||||||
if (element) {
|
if (element) {
|
||||||
element.focus();
|
element.focus();
|
||||||
|
|
Loading…
Reference in a new issue