From 2dc92f13bbc814551f6174fdf847512c1b56cc0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Delattre?= Date: Fri, 21 Dec 2018 10:01:01 +0100 Subject: [PATCH] Revert "Autofocus on the poster list" This reverts commit c206336c7b54f0855526991d13443b1b79c469f4. It breaks the fuzzy search while in the poster list. We need to find a better solution to get the keyboard focus. --- frontend/js/components/list/posters.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/js/components/list/posters.js b/frontend/js/components/list/posters.js index 9914eed..74c3cdb 100644 --- a/frontend/js/components/list/posters.js +++ b/frontend/js/components/list/posters.js @@ -116,14 +116,6 @@ export default class ListPosters extends React.PureComponent { class Posters extends React.PureComponent { constructor(props) { super(props); - this.posterRef = React.createRef(); - } - - componentDidUpdate() { - // Always focus on the poster list - if (this.posterRef.current != null) { - this.posterRef.current.focus(); - } } move(event) { @@ -185,7 +177,6 @@ class Posters extends React.PureComponent { return (
this.move(event)} className="poster-list" >