diff --git a/src/components/structures/RoomSubList.js b/src/components/structures/RoomSubList.js index 0cf719d507..be472d92f7 100644 --- a/src/components/structures/RoomSubList.js +++ b/src/components/structures/RoomSubList.js @@ -309,7 +309,6 @@ const RoomSubList = React.createClass({ ); } - const tabindex = this.props.searchFilter === "" ? "0" : "-1"; const len = this.state.sortedList.length + this.props.extraTiles.length; let chevron; if (len) { @@ -321,6 +320,7 @@ const RoomSubList = React.createClass({ chevron = (
); } + const tabindex = this.props.searchFilter === "" ? "0" : "-1"; return (