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:
parent
0be12b2fa1
commit
2dc92f13bb
@ -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"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user