Skip to content

Commit 1b3f1c3

Browse files
committed
chore(*): fix linting error
1 parent e6d2dc2 commit 1b3f1c3

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
ElementRef,
1010
EventEmitter,
1111
HostBinding,
12+
HostListener,
1213
Inject,
1314
Input,
1415
IterableChangeRecord,
@@ -27,8 +28,7 @@ import {
2728
DoCheck,
2829
Directive,
2930
OnChanges,
30-
SimpleChanges,
31-
HostListener
31+
SimpleChanges
3232
} from '@angular/core';
3333
import ResizeObserver from 'resize-observer-polyfill';
3434
import 'igniteui-trial-watermark';
@@ -2002,16 +2002,6 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
20022002
@HostBinding('attr.role')
20032003
public hostRole = 'grid';
20042004

2005-
@HostListener('focusout', ['$event'])
2006-
public blur(event) {
2007-
if ((event.target === this.tbody.nativeElement &&
2008-
this.navigation.activeNode.row >= 0 && this.navigation.activeNode.row < this.dataView.length)
2009-
|| (event.target === this.theadRow.nativeElement && this.navigation.activeNode.row === -1)
2010-
|| (event.target === this.tfoot.nativeElement && this.navigation.activeNode.row === this.dataView.length)) {
2011-
this.navigation.activeNode = {} as IActiveNode;
2012-
}
2013-
}
2014-
20152005
/**
20162006
* @hidden @internal
20172007
*/
@@ -2825,6 +2815,16 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
28252815
return this._pinnedRecordIDs.length;
28262816
}
28272817

2818+
@HostListener('focusout', ['$event'])
2819+
public blur(event) {
2820+
if ((event.target === this.tbody.nativeElement &&
2821+
this.navigation.activeNode.row >= 0 && this.navigation.activeNode.row < this.dataView.length)
2822+
|| (event.target === this.theadRow.nativeElement && this.navigation.activeNode.row === -1)
2823+
|| (event.target === this.tfoot.nativeElement && this.navigation.activeNode.row === this.dataView.length)) {
2824+
this.navigation.activeNode = {} as IActiveNode;
2825+
}
2826+
}
2827+
28282828
constructor(
28292829
public selectionService: IgxGridSelectionService,
28302830
public crudService: IgxGridCRUDService,

0 commit comments

Comments
 (0)