Open
Description
When the Modal
is rendered inside an iframe
, the wrong window
is used here, causing this error:
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
To reproduce:
- Open Codesandbox
- Click "Open modal"
- Press Tab
Shall we add a window
prop to the Modal
so that consumers could pass their own window object (iframe's window in the example above)?