Skip to content

Commit 5d100ab

Browse files
authored
Merge branch '10.2.x' into mvenkov/close-overlay-in-shadow-dom-10.2
2 parents 1c331e8 + 3989e10 commit 5d100ab

File tree

4 files changed

+11
-18
lines changed

4 files changed

+11
-18
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,8 +1563,8 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
15631563
/**
15641564
* @hidden @internal
15651565
*/
1566-
@ViewChild('loadingOverlay', { static: true })
1567-
public loadingOverlay: ElementRef;
1566+
@ViewChild('loadingOverlay', { read: IgxToggleDirective, static: true })
1567+
public loadingOverlay: IgxToggleDirective;
15681568

15691569
/**
15701570
* @hidden @internal
@@ -2061,7 +2061,7 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
20612061
/**
20622062
* @hidden @internal
20632063
*/
2064-
@ViewChild(IgxToggleDirective)
2064+
@ViewChild('rowEditingOverlay', { read: IgxToggleDirective })
20652065
public rowEditingOverlay: IgxToggleDirective;
20662066

20672067
/**
@@ -2709,7 +2709,6 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
27092709
protected _baseFontSize: number;
27102710
private _horizontalForOfs: Array<IgxGridForOfDirective<any>> = [];
27112711
private _multiRowLayoutRowSize = 1;
2712-
protected _loadingId;
27132712
protected _expansionStates: Map<any, boolean> = new Map<any, boolean>();
27142713
protected _defaultExpandState = false;
27152714
// Caches
@@ -6451,15 +6450,9 @@ export abstract class IgxGridBaseDirective extends DisplayDensityBase implements
64516450
closeOnOutsideClick: false,
64526451
positionStrategy: new ContainerPositionStrategy()
64536452
};
6454-
if (!this._loadingId) {
6455-
this._loadingId = this.overlayService.attach(this.loadingOverlay, overlaySettings);
6456-
this.overlayService.show(this._loadingId, overlaySettings);
6457-
}
6453+
this.loadingOverlay.open(overlaySettings);
64586454
} else {
6459-
if (this._loadingId) {
6460-
this.overlayService.hide(this._loadingId);
6461-
this._loadingId = null;
6462-
}
6455+
this.loadingOverlay.close();
64636456
}
64646457
}
64656458

projects/igniteui-angular/src/lib/grids/grid/grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
<div class="igx-grid__row-editing-outlet" igxOverlayOutlet #igxRowEditingOverlayOutlet></div>
198198
<igc-trial-watermark></igc-trial-watermark>
199199
</div>
200-
<div #loadingOverlay>
200+
<div igxToggle #loadingOverlay>
201201
<igx-circular-bar [indeterminate]="true" *ngIf='shouldOverlayLoading'>
202202
</igx-circular-bar>
203203
</div>
@@ -301,7 +301,7 @@
301301
}">unfold_more</igx-icon>
302302
</ng-template>
303303

304-
<div *ngIf="rowEditable" igxToggle>
304+
<div *ngIf="rowEditable" igxToggle #rowEditingOverlay>
305305
<div [className]="bannerClass">
306306
<ng-container
307307
*ngTemplateOutlet="rowEditContainer; context: { rowChangesCount: rowChangesCount, endEdit: endEdit.bind(this) }">

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
<igx-grid-filtering-row #filteringRow [style.width.px]='calcWidth' *ngIf="filteringService.isFilterRowVisible"
7474
[column]="filteringService.filteredColumn"></igx-grid-filtering-row>
7575
</div>
76-
<div #loadingOverlay>
76+
<div igxToggle #loadingOverlay>
7777
<igx-circular-bar [indeterminate]="true" *ngIf='shouldOverlayLoading'>
7878
</igx-circular-bar>
7979
</div>
@@ -248,7 +248,7 @@
248248
<igx-icon role="button" [isActive]='hasExpandedRecords() && hasExpandableChildren' fontSet="material">unfold_less</igx-icon>
249249
</ng-template>
250250

251-
<div *ngIf="rowEditable" igxToggle>
251+
<div *ngIf="rowEditable" igxToggle #rowEditingOverlay>
252252
<div [className]="bannerClass">
253253
<ng-container
254254
*ngTemplateOutlet="rowEditContainer; context: { rowChangesCount: rowChangesCount, endEdit: endEdit.bind(this) }">

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
[column]="filteringService.filteredColumn"></igx-grid-filtering-row>
5757
</div>
5858
<div class="igx-grid__thead-thumb" [hidden]='!hasVerticalScroll()' [style.width.px]="scrollSize"></div>
59-
<div #loadingOverlay>
59+
<div igxToggle #loadingOverlay>
6060
<igx-circular-bar [indeterminate]="true" *ngIf='shouldOverlayLoading'>
6161
</igx-circular-bar>
6262
</div>
@@ -214,7 +214,7 @@
214214
</div>
215215
</ng-template>
216216

217-
<div *ngIf="rowEditable" igxToggle>
217+
<div *ngIf="rowEditable" igxToggle #rowEditingOverlay>
218218
<div [className]="bannerClass">
219219
<ng-container
220220
*ngTemplateOutlet="rowEditContainer; context: { rowChangesCount: rowChangesCount, endEdit: endEdit.bind(this) }">

0 commit comments

Comments
 (0)