about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-07-24 20:39:35 +0200
committerThibG <thib@sitedethib.com>2018-07-24 21:15:21 +0200
commitc600bcfe1da3585245112edb596c8cc776959600 (patch)
treee027e133bfc739fd4c4d2af9803779f40fc864fa /app
parent037228cf0382edc3512546b60c1ee11388da86c8 (diff)
Fix focusing composer textarea on “new toot” hotkey
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/features/ui/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js
index a0b8a8257..94818959e 100644
--- a/app/javascript/flavours/glitch/features/ui/index.js
+++ b/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();