Totally disable scroll top and append row items only on pagination

Created on 18 August 2023, 11 months ago

Problem

When filtering rows in views with better exposed filters, views infinite scroll module appends the row items instead of replacing it.

Steps to reproduce

  • Create a new view
  • Use better exposed filter and for the exposed form style and set it to auto-submit
  • Add exposed filters
  • Enable Ajax
  • Use Infinite scroll on pager
  • Save the view
  • Duplicate the view display as a block
  • Save the view
  • Create a page with blocks on top and set the views block on the bottom
  • Select filters

After a filter has been selected (and auto-submitted), the rows are appended instead of being replaced.

Proposed resolution

  • Totally do not scroll top when infinite_scroll is the pager plugin id.
  • Change the alterPaginationCommands method logic to insert only when current page is greater than 0
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡­Philippines erom

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

Comments & Activities

Production build 0.69.0 2024