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' ;
3333import ResizeObserver from 'resize-observer-polyfill' ;
3434import '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