Skip to content

Commit

Permalink
focusTableRow improved
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Oct 2, 2024
1 parent 127ffd4 commit 473ab14
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 @@ -681,13 +681,13 @@ window.Radzen = {
if (key == 'ArrowDown') {
while (table.nextSelectedIndex < rows.length - 1) {
table.nextSelectedIndex++;
if (!rows[table.nextSelectedIndex].classList.contains('rz-state-disabled'))
if (!rows[table.nextSelectedIndex] || !rows[table.nextSelectedIndex].classList.contains('rz-state-disabled'))
break;
}
} else if (key == 'ArrowUp') {
while (table.nextSelectedIndex > 0) {
table.nextSelectedIndex--;
if (!rows[table.nextSelectedIndex].classList.contains('rz-state-disabled'))
if (!rows[table.nextSelectedIndex] || !rows[table.nextSelectedIndex].classList.contains('rz-state-disabled'))
break;
}
} else if (key == 'ArrowRight') {
Expand Down

0 comments on commit 473ab14

Please sign in to comment.