Views accordion not working when we use infinite scroll pager in the views.

Created on 9 February 2023, about 2 years ago

Problem/Motivation

When we use views accordion with the infinite scroll pager then the accordion stops for the next items which renders through scroll or load more button.

Steps to reproduce

  • Create a view and use jQuery UI Accordion formatter.
  • Set the infinite scroll pager.
  • Visit the frontend and pre-rendered items will work prefect.
  • When we scroll or click on load more button it stops generating accordions for the next items.

Proposed resolution

Update the view-accordion.js file.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India someshver Panchkula

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

Comments & Activities

  • Issue created by @someshver
  • 🇮🇳India someshver Panchkula

    I have created a patch to fix the issue.

  • @someshver opened merge request.
  • 🇮🇳India someshver Panchkula

    Updated Patch with Drupal coding standard

  • 🇮🇳India ajmaltash

    Need to be cautious for everyone who is updating module version to 2.0.2 or latest, it will need this patch, old patch will not work.

    The latest version 2.0.2 has changed structure of JS file location and file itself therefore it need a revised patch. I have created this patch for personal use and found working.

Production build 0.71.5 2024