Open
Description
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
Labels
No labels