Skip to content

Commit

Permalink
More focusTableRow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Oct 2, 2024
1 parent 473ab14 commit 41e12d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Radzen.Blazor/wwwroot/Radzen.Blazor.js
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,13 @@ window.Radzen = {
} else if (key == 'ArrowRight') {
while (table.nextSelectedCellIndex < rows[table.nextSelectedIndex].cells.length - 1) {
table.nextSelectedCellIndex++;
if (!rows[table.nextSelectedIndex].cells[table.nextSelectedCellIndex].classList.contains('rz-state-disabled'))
if (!rows[table.nextSelectedIndex] || !rows[table.nextSelectedIndex].cells[table.nextSelectedCellIndex] || !rows[table.nextSelectedIndex].cells[table.nextSelectedCellIndex].classList.contains('rz-state-disabled'))
break;
}
} else if (key == 'ArrowLeft') {
while (table.nextSelectedCellIndex > 0) {
table.nextSelectedCellIndex--;
if (!rows[table.nextSelectedIndex].cells[table.nextSelectedCellIndex].classList.contains('rz-state-disabled'))
if (!rows[table.nextSelectedIndex] || !rows[table.nextSelectedIndex].cells[table.nextSelectedCellIndex] || !rows[table.nextSelectedIndex].cells[table.nextSelectedCellIndex].classList.contains('rz-state-disabled'))
break;
}
} else if (isVirtual && (key == 'PageDown' || key == 'End')) {
Expand Down

0 comments on commit 41e12d8

Please sign in to comment.