Skip to content

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. #874

Open
@moroshko

Description

@moroshko

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:

  1. Open Codesandbox
  2. Click "Open modal"
  3. 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)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions