Not working on fresh Drupal install

Created on 24 September 2022, about 2 years ago
Updated 2 September 2024, 3 months ago

I tried using this module on a site I'm building and it does not work. The "Load More" text is displayed, but it doesn't do anything. Tried with Ajax on and off. Am I missing something?

Then I tried the module on a fresh install of Drupal (9.4) to see if it was my project and got the same result. The text shows, but it doesn't load more.

Anyone else have the same issue? I attached an image of my testing environment.

Steps to reproduce.
Create a view as usual and set the page to load more.
Change the view format to Bootstrap grid for example. Then, the .views-content will not be used, and the load more stop working.

🐛 Bug report
Status

Needs work

Version

2.0

Component

User interface

Created by

🇺🇸United States arlingtonvoicellc

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India nikhil_110

    Tried to reproduce the issue on local, but not get any issue in Views Load More 2.0.0-alpha1 also.
    attached a video's
    Setup Drupal with Views Load More 2.0.0-alpha1
    Created a view with pages and blocks and used load more in pager with setting 1 record per page

  • Status changed to Postponed: needs info 11 months ago
  • 🇺🇸United States cedewey Denver, CO

    I am also able to install and configure the module as expected. Marking this, "Postponed (maintainer needs more info)."

  • 🇳🇿New Zealand CheJim

    I had the same issue on a new site, D10.2

    The issue was there wasn't a .view-content wrapper around the view rows in the markup, and I hadn't specified an alternative selector for the wrapper in the pager options. There were no errors in the browser console or watchdog.

  • Status changed to Needs work 6 months ago
  • 🇧🇷Brazil joaopauloc.dev

    Same issue here, thankfully for the @chejim comment I could fix, this setting that we need to do when we use a different view format could be added on the module page, this documentation will save time from other people.

    To reproduce, just create a view and set a format that does not use the .view-content as a wrapper and the issue appears.

    Steps to reproduce added on issue summary.

  • Same issue
    @chemjim nice catch!!

  • 🇧🇪Belgium vodde83

    There's more, if you look closely the default selector is > .view-content ( notice the 'greater than' arrow ).
    So your row wrapper also has to be a direct descendant of the whole View wrapper! Easy to miss but in our case the issue, as we had additional HTML in-between.

Production build 0.71.5 2024