From aa483f579fb9578c81ad8ee555066c888ec44a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 10 May 2022 13:35:31 +0300 Subject: [PATCH] HTML tree: Find-as-you-type remains on matching string. Closes #2607 --- chrome/content/zotero/components/virtualized-table.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index 778da5194c..6a8d603d7d 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -640,7 +640,7 @@ class VirtualizedTable extends React.Component { } } else { - for (let i = (this.selection.focused + 1) % rowCount; i != this.selection.focused; i = (i + 1) % rowCount) { + for (let i = (this.selection.focused) % rowCount; i != this.selection.focused - 1; i = (i + 1) % rowCount) { let rowString = this.props.getRowString(i); if (rowString.toLowerCase().indexOf(this._typingString) == 0) { if (i != this.selection.focused) {