Skip to content

Commit 3d7f488

Browse files
committed
Revert the fix for issue #12505
1 parent d2f00a2 commit 3d7f488

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6515,8 +6515,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
65156515
}
65166516

65176517
});
6518-
} else if (event.origin === TransactionEventOrigin.CLEAR) {
6519-
this.validation.clear();
65206518
}
65216519

65226520
this.selectionService.clearHeaderCBState();

projects/igniteui-angular/src/lib/grids/grid/grid-validation.spec.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -525,44 +525,6 @@ describe('IgxGrid - Validation #grid', () => {
525525
expect((grid.validation as any).getValidity().length).toEqual(0);
526526
});
527527

528-
it('should update validity when all transactions are cleared', () => {
529-
const grid = fixture.componentInstance.grid as IgxGridComponent;
530-
let cell = grid.gridAPI.get_cell_by_visible_index(1, 1);
531-
let secondCell = grid.gridAPI.get_cell_by_visible_index(2, 1);
532-
533-
// update first cell
534-
UIInteractions.simulateDoubleClickAndSelectEvent(cell.element);
535-
cell.editMode = true;
536-
cell.update('IG');
537-
fixture.detectChanges();
538-
539-
grid.gridAPI.crudService.endEdit(true);
540-
fixture.detectChanges();
541-
542-
GridFunctions.verifyCellValid(cell, false);
543-
544-
//update second cell
545-
UIInteractions.simulateDoubleClickAndSelectEvent(secondCell.element);
546-
secondCell.editMode = true;
547-
secondCell.update('bob');
548-
fixture.detectChanges();
549-
550-
grid.gridAPI.crudService.endEdit(true);
551-
fixture.detectChanges();
552-
GridFunctions.verifyCellValid(cell, false);
553-
expect(grid.validation.getInvalid().length).toBe(2);
554-
555-
556-
// clear transactions
557-
grid.transactions.clear();
558-
fixture.detectChanges();
559-
expect(grid.validation.getInvalid().length).toBe(0);
560-
561-
562-
grid.validation.clear();
563-
fixture.detectChanges();
564-
});
565-
566528
it('should not show errors when the row is deleted', () => {
567529
const grid = fixture.componentInstance.grid as IgxGridComponent;
568530
let cell = grid.gridAPI.get_cell_by_visible_index(1, 1);

0 commit comments

Comments
 (0)