Skip to content

Commit

Permalink
chore(*): reverting the crudservice check
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosSF committed Oct 3, 2024
1 parent b7ad3a7 commit c0828db
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3591,7 +3591,15 @@ export abstract class IgxGridBaseDirective implements GridType,
public _setupListeners() {
const destructor = takeUntil<any>(this.destroy$);
fromEvent(this.nativeElement, 'focusout').pipe(filter(() => !!this.navigation.activeNode), destructor).subscribe((event) => {
if (/*!this.crudService.cell &&*/
console.log("Grid focusout", document.activeElement);

Check failure on line 3594 in projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

View workflow job for this annotation

GitHub Actions / run-tests (18.x)

Unexpected console statement

Check failure on line 3594 in projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

View workflow job for this annotation

GitHub Actions / run-tests (20.x)

Unexpected console statement
//console.log(this.crudService.cell);
//console.log(this.navigation.activeNode);
//console.log(event.target);
//console.log(this.navigation.activeNode.row);
//console.log(this.rowEditable);
//console.log(this.crudService.rowEditingBlocked);
//console.log(this.crudService.rowInEditMode);
if (!this.crudService.cell &&
!!this.navigation.activeNode &&
((event.target === this.tbody.nativeElement && this.navigation.activeNode.row >= 0 &&
this.navigation.activeNode.row < this.dataView.length)
Expand All @@ -3600,6 +3608,7 @@ export abstract class IgxGridBaseDirective implements GridType,
!(this.rowEditable && this.crudService.rowEditingBlocked && this.crudService.rowInEditMode)) {
this.navigation.lastActiveNode = this.navigation.activeNode;
this.navigation.activeNode = {} as IActiveNode;
console.log("cleared");

Check failure on line 3611 in projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

View workflow job for this annotation

GitHub Actions / run-tests (18.x)

Unexpected console statement

Check failure on line 3611 in projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

View workflow job for this annotation

GitHub Actions / run-tests (20.x)

Unexpected console statement
this.notifyChanges();
}
});
Expand Down

0 comments on commit c0828db

Please sign in to comment.