Fix find-as-you-type not matching beyond first letter

Closes #2581
This commit is contained in:
Adomas Venčkauskas 2022-04-29 10:28:25 +03:00
parent 70c9bef320
commit fca16d2ad5

View file

@ -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) {