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.
This commit is contained in:
Grégoire Delattre 2018-12-21 10:01:01 +01:00
parent 0be12b2fa1
commit 2dc92f13bb

View File

@ -116,14 +116,6 @@ export default class ListPosters extends React.PureComponent {
class Posters extends React.PureComponent { class Posters extends React.PureComponent {
constructor(props) { constructor(props) {
super(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) { move(event) {
@ -185,7 +177,6 @@ class Posters extends React.PureComponent {
return ( return (
<div tabIndex="0" <div tabIndex="0"
ref={this.posterRef}
onKeyDown={(event) => this.move(event)} onKeyDown={(event) => this.move(event)}
className="poster-list" className="poster-list"
> >