Skip to content

isVisible failing with element from a different window #436

Open
@cpind

Description

@cpind

Hey,

I wanted to report a small issue with isVisible function.

I'm working on an application that opens new windows to show some components. We rely on react component for tooltips and popup and we realized that they are failing on those components that run on the new windows. After some investigation we realised that the issue came from the isVisible function that fails when the element comes from another window.

The problem comes from the element instanceof Element that always fails because the `Element' class instance is window dependant.

There is a fix for which is to rely on element.ownerDocument.defaultView.Element instead.

Would accept a PR for this issue?

Best,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions