Skip to content

Commit

Permalink
chore(*): fix rowEditDone event args
Browse files Browse the repository at this point in the history
  • Loading branch information
ddincheva committed Apr 4, 2023
1 parent 6641b60 commit 04e811f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4544,7 +4544,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
/** @hidden */
public deleteRowById(rowId: any): any {
const args = {
rowID: rowId, key: rowId,
rowID: rowId,
primaryKey: rowId,
cancel: false,
rowData: this.getRowData(rowId),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ describe('IgxGrid - Row Editing #grid', () => {

cellEditArgs.newValue = newCellValue;
cellEditArgs.rowData = Object.assign({}, row.data, { ProductName: newCellValue });

cellEditArgs.data = Object.assign({}, row.data, { ProductName: newCellValue });
rowEditArgs = {
rowID: row.key,
primaryKey: cell.row.key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ describe('Edit cell with data of type Array #grid', () => {

initialRowData = { ...cell.row.data };
cellArgs.rowData = initialRowData;
cellArgs.data = initialRowData;
cellArgs.newValue = initialRowData.locations;

expect(cellArgs.newValue.length).toEqual(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,6 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
const args = {
rowID: rowId,
primaryKey: rowId,
key: rowId,
cancel: false,
rowData: this.getRowData(rowId),
data: this.getRowData(rowId),
Expand Down

0 comments on commit 04e811f

Please sign in to comment.