Skip to content

Commit fd6c02f

Browse files
committed
fix(IgxGrid): should not throw error when rowEdit template is empty #6127
1 parent f0157fe commit fd6c02f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ export class IgxGridNavigationService {
190190

191191
public focusEditableTarget(rowIndex: number, columnIndex: number) {
192192
if (this.isColumnFullyVisible(columnIndex)) {
193-
this.getCellElementByVisibleIndex(rowIndex, columnIndex).focus();
193+
const cell = this.getCellElementByVisibleIndex(rowIndex, columnIndex);
194+
if (cell) { cell.focus(); }
194195
} else {
195196
this.performHorizontalScrollToCell(rowIndex, columnIndex);
196197
}

0 commit comments

Comments
 (0)