Skip to content

Commit 163a58d

Browse files
authored
fix(grid): Init activeNode layout if not set or cleared. (#16910)
1 parent 3020094 commit 163a58d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

projects/igniteui-angular/grids/core/src/grid-mrl-navigation.service.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ export class IgxGridMRLNavigationService extends IgxGridNavigationService {
221221
}
222222
const nextLayout = this.layout(colIndex);
223223
const newLayout = key.includes('up') || key.includes('down') ? {rowStart: nextLayout.rowStart} : {colStart: nextLayout.colStart};
224+
if (!this.activeNode.layout) {
225+
this.activeNode.layout = this.layout(this.activeNode.column || 0);
226+
}
224227
Object.assign(this.activeNode.layout, newLayout, {rowEnd: nextLayout.rowEnd});
225228

226229
if (ctrl && (key === 'home' || key === 'end')) {

0 commit comments

Comments
 (0)