- Issue created by @xax
No of items per page doesn't work at high numbers + doesn't refresh pin switch
I'm using Views Infinite Scroll on D9.5.11, Php 8.1.25. The view shows a list of pages from the site based on keyword search. The infinite scroll is set up to initially show 20 items, but visitors can also choose 40, 60, 100, 200.
Issue 1: quantity shown - When I tick the box 'allow user to show all items', that doesn't work, it keeps showing first 20 (or 40 or 60 or whatever the last selection was).
As my client wanted to be able to have a large overview, we added the workaround option to show 500 items on one page. This worked fine for a while, but recently stopped working, now simply stays at last number selected (version was and still is 2.02).
Issue 2: quantity shown nit changed when switching - The no of items shown work fine for 20, 40, 60, 100 etc (not 500 or all (see above), but switching between quantities doesn't work. For example I open the page, it shows 20 items per page. Then I switch to 100 items, press update filters, and it works, it shows 100. I then select 40, update and it works. then I select 100 again, update but it still shows 40 items per page.. It feels like a caching issue?
Maybe both issues are related to the other critical issue I found: https://www.drupal.org/project/views_infinite_scroll/issues/3406721 🐛 End of search results infinite scroll errors Active
Could that issue and these one be related to using infinite scroll as part of a sort and better exposed filters environment?
Active
2.0
Code