views pagers are broken when block is loaded via ajax

Created on 15 February 2023, over 1 year ago
Updated 18 May 2023, over 1 year ago

After enabling the feature of loading blocks via ajax, the ajax on the load more button stopped working.

When we click on "load more," it is now refreshing the page instead of loading content.

Please suggest.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇮🇳India pratikshad Mumbai

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.

  • Issue created by @pratikshad
  • Status changed to Postponed: needs info over 1 year ago
  • 🇨🇦Canada geoanders Nova Scotia 🍁

    Please provide more steps to reproduce problem.

  • Status changed to Active over 1 year ago
  • 🇺🇸United States loze Los Angeles

    Same Issue.

    Views blocks that load more pages with an ajax pager do not work when they are loaded by block_ajax
    The pager works properly if ajax block is not enabled.

    Steps:
    - Create a block view that has an ajax enabled pager.
    - Enable the ajax loading of the block
    - The pager in the loaded block does not work.

  • 🇺🇸United States loze Los Angeles
  • 🇬🇷Greece GiorgosK Chios, Greece 🇬🇷

    In similar fashion we have successfully added a poll (views block) with this module and it displays correctly but it has lost its ability to vote using ajax. Instead clicking on the vote button reloads the whole page.

    Noticed that the submit button and the form action has lost some of the ajax related attributes. Not trying to hijack the issue queue just think the problem and solution might be very similar or can be generalized.

Production build 0.71.5 2024