Skip to content

Use ResizeObserver instances from correct window #29508

@ling1726

Description

@ling1726

Context: https://bugs.chromium.org/p/chromium/issues/detail?id=1491739

Previous testing showed that ResizeObservers function correctly cross parent window and iframes, which was the preferred way of testing multi window compatibility. However, behaviour in child windows is not the same as indicated in the above chrome bug.

Convert usages of ResizeObserver to use from the correct globals:

  • packages/react-components/priority-overflow/src/overflowManager.ts
  • packages/react-components/react-table/src/hooks/useMeasureElement.ts
  • packages/react-components/react-virtualizer/src/hooks/useResizeObserverRef.ts

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions