Skip to content

Commit 43f99cf

Browse files
authored
Merge pull request #4441 from IgniteUI/sstoychev/fix-4436
adding distinct check overlay cache add - 7.2.x
2 parents 9de8d34 + 067dcd2 commit 43f99cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseCompone
332332
this._transactions = this.parentIsland ? this.parentIsland.transactions : this._transactions;
333333
super.ngOnInit();
334334
this.overlayService.onOpened.pipe(takeUntil(this.destroy$)).subscribe((event) => {
335-
if (this.overlayService.getOverlayById(event.id).settings.outlet === this.outletDirective) {
335+
if (this.overlayService.getOverlayById(event.id).settings.outlet === this.outletDirective &&
336+
this._overlayIDs.indexOf(event.id) < 0) {
336337
this._overlayIDs.push(event.id);
337338
}
338339
});

0 commit comments

Comments
 (0)