diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index 264a777e4c..4799d47eb6 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -637,7 +637,7 @@ class VirtualizedTable extends React.Component { } } else { - for (let i = this.selection.focused + 1; i == this.selection.focused; i = (i + 1) % rowCount) { + for (let i = (this.selection.focused + 1) % rowCount; i != this.selection.focused; i = (i + 1) % rowCount) { let rowString = this.props.getRowString(i); if (rowString.toLowerCase().indexOf(this._typingString) == 0) { if (i != this.selection.focused) {