-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When parent is hidden, it will fire onEnter callback anyway #328
Comments
moyus
changed the title
When parent is hidden, it will fire onEnter callback immediately
When parent is hidden, it will fire onEnter callback anyway
Jul 3, 2020
We can refer to the Intersection Observer Polyfill first determines whether the element is displayed or not, and then calculates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I place
<Waypoint />
in a hidden parent container, it will fireonEnter
callback immediately as soon as it mounted, even if it's not in viewport. Which seems is a bug?Here is the reproduce demo: https://codesandbox.io/s/react-waypoint-bug-nr0j4
The text was updated successfully, but these errors were encountered: