-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I got this error on production build website
Sentry stack trace show me that the error is from this package
I don't know why element is null, maybe we have to check
function isVisible(el: Element, view: Element | null): boolean {
if (!el) return false; //<-- maybe we add this to prevent error
const elRect = el.getBoundingClientRect();
if (!view) return elRect.top >= 0 && elRect.bottom <= window.innerHeight;
const viewRect = view.getBoundingClientRect();
return elRect.top >= viewRect.top && elRect.bottom <= viewRect.bottom;
}
johannes-z, SpiritusDeos, chr-sad, BananaPukeh, priiduneemre and 3 more
Metadata
Metadata
Assignees
Labels
No labels