diff --git a/Radzen.Blazor/wwwroot/Radzen.Blazor.js b/Radzen.Blazor/wwwroot/Radzen.Blazor.js index 786e68e9446..e3f92c60f0c 100644 --- a/Radzen.Blazor/wwwroot/Radzen.Blazor.js +++ b/Radzen.Blazor/wwwroot/Radzen.Blazor.js @@ -708,7 +708,7 @@ window.Radzen = { table.nextSelectedIndex = 1; } - if (key == 'ArrowLeft' || key == 'ArrowRight' || (key == 'ArrowUp' && table.nextSelectedIndex == 0 && table.parentNode.scrollTop == 0)) { + if (key == 'ArrowLeft' || key == 'ArrowRight' || (key == 'ArrowUp' && cellIndex != null && table.nextSelectedIndex == 0 && table.parentNode.scrollTop == 0)) { var highlightedCells = rows[table.nextSelectedIndex].querySelectorAll('.rz-state-focused'); if (highlightedCells.length) { for (var i = 0; i < highlightedCells.length; i++) { diff --git a/RadzenBlazorDemos/Pages/PopupDataGrid.razor b/RadzenBlazorDemos/Pages/PopupDataGrid.razor index 8c07672a3c8..96c2115cca9 100644 --- a/RadzenBlazorDemos/Pages/PopupDataGrid.razor +++ b/RadzenBlazorDemos/Pages/PopupDataGrid.razor @@ -22,12 +22,12 @@