HTML tree: Find-as-you-type remains on matching string.

Closes #2607
This commit is contained in:
Adomas Venčkauskas 2022-05-10 13:35:31 +03:00
parent 9c86a974da
commit aa483f579f

View file

@ -640,7 +640,7 @@ class VirtualizedTable extends React.Component {
} }
} }
else { 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); let rowString = this.props.getRowString(i);
if (rowString.toLowerCase().indexOf(this._typingString) == 0) { if (rowString.toLowerCase().indexOf(this._typingString) == 0) {
if (i != this.selection.focused) { if (i != this.selection.focused) {