Skip to content

Commit

Permalink
handle missing ResizeObserver!!
Browse files Browse the repository at this point in the history
  • Loading branch information
kseamon committed Oct 2, 2024
1 parent 2d61ba1 commit 5a2ed27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/table/sticky-styler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const STICKY_DIRECTIONS: StickyDirection[] = ['top', 'bottom', 'left', 'r
*/
export class StickyStyler {
private _elemSizeCache = new WeakMap<HTMLElement, {width: number; height: number}>();
private _resizeObserver = window.ResizeObserver
private _resizeObserver = window?.ResizeObserver
? new window.ResizeObserver(entries => this._updateCachedSizes(entries))
: null;
private _updatedStickyColumnsParamsToReplay: UpdateStickyColumnsParams[] = [];
Expand Down

0 comments on commit 5a2ed27

Please sign in to comment.