Skip to content

Commit

Permalink
document.contains fails on ie - changed to document.body.contains
Browse files Browse the repository at this point in the history
  • Loading branch information
t00 authored and shlomiassaf committed Jan 16, 2020
1 parent ad33f0d commit bdc4b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ngrid/src/lib/grid/ngrid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export class PblNgridComponent<T = any> implements AfterContentInit, AfterViewIn
// An example is a grid in a mat-tab that is hidden, the grid will hit the resize one when we focus the tab
// which will require a resize handling because it's initial size is 0
// To workaround this, we only skip elements not yet added to the DOM, which means they will not trigger a resize event.
let skipValue = document.contains(this.elRef.nativeElement) ? 1 : 0;
let skipValue = document.body.contains(this.elRef.nativeElement) ? 1 : 0;

ro$
.pipe(
Expand Down

0 comments on commit bdc4b10

Please sign in to comment.