Browse Source

Fix focusing search bar with hotkeys

closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
b1ed2b1d03
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/features/ui/index.js

+ 1
- 1
app/javascript/flavours/glitch/features/ui/index.js View File

@ -279,7 +279,7 @@ export default class UI extends React.Component {
handleHotkeySearch = e => {
e.preventDefault();
const element = this.node.querySelector('.search__input');
const element = this.node.querySelector('.drawer--search input');
if (element) {
element.focus();

Loading…
Cancel
Save