You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use infinite-scroll on an angular 1.6.x project. and I discovered that it's not working if jQuery is not loaded explicitly directly from index.html even if jQuery is imported with webpack bandle.
Looking at the code, I can see that this function is never returns a value, instead it returns from the if statement where elem.css('none') returns a selector instead of undefined.
Hi,
I use infinite-scroll on an angular 1.6.x project. and I discovered that it's not working if jQuery is not loaded explicitly directly from index.html even if jQuery is imported with webpack bandle.
Looking at the code, I can see that this function is never returns a value, instead it returns from the if statement where elem.css('none') returns a selector instead of undefined.
offsetTop = function(elem) { if (!elem[0].getBoundingClientRect || elem.css('none')) { return; } return elem[0].getBoundingClientRect().top + pageYOffset(elem); };
Any idea what is elem.css('none') used for and why is it needed here?
Removing it resolves the jQuery dependency load from index.html
The text was updated successfully, but these errors were encountered: