- Issue created by @AaronBauman
- 🇺🇸United States AaronBauman Philadelphia
As best I can tell, this is a javascript problem with
$.fn.infiniteScrollInsertView
The javascript function assumes an ajax response will contain results from a single display, and does not account for the results of multiple displays when using an attachment with the "inherit" option enabled.
- Status changed to Needs review
over 1 year ago 4:00pm 1 November 2023 - last update
over 1 year ago Patch Failed to Apply - 🇺🇸United States AaronBauman Philadelphia
So, turns out the javascript method is not actually necessary, so long as we adjust the query() operation to apply to AJAX requests.
I'm sure this is not the right fix for everyone, but it's working for me.
- last update
11 months ago 2 pass - 🇮🇳India renukakulkarni
The previous patch removes the AjaxResponseSubscriber.php file entirely, which does not seem to be the correct way to resolve this issue.
The attached patch has been tested with the latest version of the module (2.0.3) and fixes the following issues:
- Using "inherit" with attachments renders incorrect results.
- More results load immediately without scrolling.
- Loading is triggered only when scrolling reaches the bottom.
- Prevents unwanted triggering during normal scrolling.