Fix focusing composer textarea on “new toot” hotkey

master
Thibaut Girka 6 years ago committed by ThibG
parent 037228cf03
commit c600bcfe1d
  1. 2
      app/javascript/flavours/glitch/features/ui/index.js

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

Loading…
Cancel
Save