Filtered view that has fewer results than the number of items to display per page is emptied when scrolling

Created on 11 February 2025, about 2 months ago

Problem/Motivation

When you filter a view and end up with fewer total results than the number of items to be shown on a single page of the view, scrolling down triggers the view's auto scroll and proceeds to overwrite the current view on the page with an empty one.

Steps to reproduce

  • Create a new view
  • Add the infinite scroll pager
  • Turn on Automatically Load Content
  • Set Items to display to a value larger than the number of results of the filtered view
  • Visit the view, and enable the filter that results in fewer items to be shown
  • Scroll down to trigger the infinite scroll

Proposed resolution

Empty the Ajax commands in AjaxResponseSubscriber.php if the view's results are empty.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium Fhey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024