Merge pull request #6544 from Tainan404/issue-6518

Fix getBoundingClientRect error on console.
This commit is contained in:
Anton Georgiev 2019-01-15 11:41:43 -05:00 committed by GitHub
commit 408a0942a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ const eventsToBeBound = [
];
const isElementInViewport = (el) => {
if (!el) return false;
const rect = el.getBoundingClientRect();
const prefetchHeight = 125;

View File

@ -18,6 +18,7 @@ const eventsToBeBound = [
];
const isElementInViewport = (el) => {
if (!el) return false;
const rect = el.getBoundingClientRect();
return (