-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Last page error - Bad InfiniteScroll path option. Next link not found #691
Comments
Thanks for reporting this issue! I'll be adding a fix in the next release that will stop if |
When a new release is planned @desandro? |
v3.0.1 has been released with this fix added. Please update! Closing this issue has resolved 🌈🐻 |
Receiving same error when we have only one page. |
this issue isn't fixed yet, or did miss something? |
Version: Infinite Scroll PACKAGED v3.0.2 Bad InfiniteScroll path option. Next link not found: .next a Issue on 'pluginOptions' => [ |
Same issue here. Also in my case, pagination and loader both get visible. |
same issue here. |
To be clear, The As of v3.0.2 the intended behavior is on last pages where Infinite Scroll is initialized and
These are error messages and not thrown JS errors, so they will not disrupt JS. These messages are useful for users who have set // jQuery
if ( $('.pagination__next').length ) {
$('.container').infiniteScroll({
path: '.pagination__next',
});
} // vanilla JS
if ( document.querySelector('.pagination__next') ) {
var infScroll = new InfiniteScroll({
path: '.pagination__next',
});
} |
I don't think, that this is fixed properly, not even in 4.0.1. When the single page result is loaded, |
I found out, that $('.pagination').hide();
$('.page-load-status').hide(); |
I tried to add this conditional but it broke the infinite scroll capability to load next pages in Safari only! Here a screenshot of what happens with the conditional applied in Safari (left) and Firefox (right). That said, probably it's not a good practice to enclose the infinite scroll code in a conditional, and maybe the "red" errors might become "yellow" alerts instead? |
If you load the last page of results directly where the
path
selector will no longer match any nodes it will throw the following error:Test case: http://mmcurate.com/test/test-case-page-2.html
The text was updated successfully, but these errors were encountered: