Merge pull request #6544 from Tainan404/issue-6518
Fix getBoundingClientRect error on console.
This commit is contained in:
commit
408a0942a5
@ -24,6 +24,7 @@ const eventsToBeBound = [
|
||||
];
|
||||
|
||||
const isElementInViewport = (el) => {
|
||||
if (!el) return false;
|
||||
const rect = el.getBoundingClientRect();
|
||||
const prefetchHeight = 125;
|
||||
|
||||
|
@ -18,6 +18,7 @@ const eventsToBeBound = [
|
||||
];
|
||||
|
||||
const isElementInViewport = (el) => {
|
||||
if (!el) return false;
|
||||
const rect = el.getBoundingClientRect();
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user