Added check for the last null row (#8764)

This commit is contained in:
Alex Ma
2019-12-20 15:16:56 -08:00
committed by GitHub
parent 74caccdfe6
commit ce10c3ac3f

View File

@@ -391,7 +391,7 @@ export abstract class GridParentComponent {
} }
let rowIndex = grid.getCellFromEvent(event).row; let rowIndex = grid.getCellFromEvent(event).row;
if (rowIndex !== grid.getDataLength() - 1) {
let actionContext: IGridInfo = { let actionContext: IGridInfo = {
batchIndex: batchId, batchIndex: batchId,
resultSetNumber: resultId, resultSetNumber: resultId,
@@ -401,6 +401,7 @@ export abstract class GridParentComponent {
}; };
let anchor = { x: event.pageX + 1, y: event.pageY }; let anchor = { x: event.pageX + 1, y: event.pageY };
this.contextMenuService.showContextMenu({ this.contextMenuService.showContextMenu({
getAnchor: () => anchor, getAnchor: () => anchor,
getActions: () => this.actionProvider.getGridActions(), getActions: () => this.actionProvider.getGridActions(),
@@ -408,6 +409,7 @@ export abstract class GridParentComponent {
getActionsContext: () => (actionContext) getActionsContext: () => (actionContext)
}); });
} }
}
/** /**
* Returns a function that selects all elements of a grid. This needs to * Returns a function that selects all elements of a grid. This needs to