Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Visibility Observer Doesn't Work on Edge 15 With Zero Area Element #360

Open
alxHenry opened this issue May 30, 2018 · 0 comments
Open

Visibility Observer Doesn't Work on Edge 15 With Zero Area Element #360

alxHenry opened this issue May 30, 2018 · 0 comments

Comments

@alxHenry
Copy link

Edge 15 is unable to support intersection observer when the element passed has 0 area: researchgate/react-intersection-observer#16

Ran into this when wanting to use an observer to execute a callback and wasn't passing any element to render, so by default an empty div is created. That works fine on other browsers, but Edge is unable to implement the intersection observer with a 0 area element. Workaround was to pass a 1x1 element to render on enter and leave.

Is this a workaround that we'd be interested in implementing at the YamUI level? Maybe if a user doesn't pass an element then by default we create a 1x1 div. Or should the enter and leave elements be required?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant