Skip to content

Commit 52860e8

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix duplicate host listeners.
1 parent 19c2efe commit 52860e8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

projects/igniteui-angular/src/lib/grids/row.directive.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy {
441441
if (this.grid.actionStrip) {
442442
this.grid.actionStrip.show(this);
443443
}
444+
this.grid.hoverIndex = this.index;
444445
}
445446

446447
/**
@@ -452,6 +453,7 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy {
452453
if (this.grid.actionStrip && this.grid.actionStrip.hideOnRowLeave) {
453454
this.grid.actionStrip.hide();
454455
}
456+
this.grid.hoverIndex = null;
455457
}
456458

457459
/**
@@ -632,14 +634,6 @@ export class IgxRowDirective implements DoCheck, AfterViewInit, OnDestroy {
632634
return false;
633635
}
634636

635-
@HostListener('mouseenter') onMouseEnter() {
636-
this.grid.hoverIndex = this.index;
637-
}
638-
639-
@HostListener('mouseleave') onMouseLeave() {
640-
this.grid.hoverIndex = null;
641-
}
642-
643637
protected isHoveredRoot(col: ColumnType) {
644638
const mergeMeta = this.metaData?.cellMergeMeta;
645639
const rowCount = mergeMeta?.get(col.field)?.rowSpan;

0 commit comments

Comments
 (0)