Skip to content

Commit cfc0bc5

Browse files
authored
Merge pull request #8415 from IgniteUI/mkirova/fix-8407
fix(igxGrid): Fix issue with actionStrip.show being called too many t…
2 parents e42b55d + 48fd2e1 commit cfc0bc5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ describe('igxGridEditingActions #grid ', () => {
139139
actionStrip = fixture.componentInstance.actionStrip;
140140
grid = fixture.componentInstance.grid;
141141
}));
142-
it('should auto-show on mouse over of row.', () => {
142+
it('should auto-show on mouse enter of row.', () => {
143143
const row = grid.getRowByIndex(0);
144144
const rowElem = row.nativeElement;
145-
UIInteractions.simulateMouseEvent('mouseover', rowElem, 0, 0);
145+
UIInteractions.simulateMouseEvent('mouseenter', rowElem, 0, 0);
146146
fixture.detectChanges();
147147

148148
expect(actionStrip.context).toBe(row);
@@ -171,18 +171,18 @@ describe('igxGridEditingActions #grid ', () => {
171171
hierarchicalGrid = fixture.componentInstance.hgrid;
172172
}));
173173

174-
it('should auto-show root actionStrip on mouse over of root row.', () => {
174+
it('should auto-show root actionStrip on mouse enter of root row.', () => {
175175
const row = hierarchicalGrid.getRowByIndex(0);
176176
const rowElem = row.nativeElement;
177-
UIInteractions.simulateMouseEvent('mouseover', rowElem, 0, 0);
177+
UIInteractions.simulateMouseEvent('mouseenter', rowElem, 0, 0);
178178
fixture.detectChanges();
179179

180180
expect(actionStripRoot.context).toBe(row);
181181
expect(actionStripRoot.hidden).toBeFalse();
182182
expect(actionStripChild.context).toBeUndefined();
183183
});
184184

185-
it('should auto-show row island actionStrip on mouse over of child row.', () => {
185+
it('should auto-show row island actionStrip on mouse enter of child row.', () => {
186186
const row = hierarchicalGrid.getRowByIndex(0) as IgxHierarchicalRowComponent;
187187
row.toggle();
188188
fixture.detectChanges();
@@ -191,7 +191,7 @@ describe('igxGridEditingActions #grid ', () => {
191191

192192
const childRow = childGrid.getRowByIndex(0);
193193
const rowElem = childRow.nativeElement;
194-
UIInteractions.simulateMouseEvent('mouseover', rowElem, 0, 0);
194+
UIInteractions.simulateMouseEvent('mouseenter', rowElem, 0, 0);
195195
fixture.detectChanges();
196196

197197
expect(actionStripChild.context).toBe(childRow);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ export class IgxRowDirective<T extends IgxGridBaseDirective & GridType> implemen
396396
* @hidden
397397
* @internal
398398
*/
399-
@HostListener('mouseover', ['$event'])
399+
@HostListener('mouseenter', ['$event'])
400400
public showActionStrip(event: MouseEvent) {
401401
if (this.grid.actionStrip) {
402402
this.grid.actionStrip.show(this);

0 commit comments

Comments
 (0)