Ajax exposed filters not working for multiple instances of the same Views block placed on one page

Created on 4 August 2020, almost 4 years ago
Updated 1 March 2024, 4 months ago

Problem/Motivation

If there is a View that has exposed filters and then you place multiple of those views on a page, the filters do not work correctly.

Steps to reproduce

Create a Views block with exposed filters set to use Ajax.
Place this block more than once on the same page using Layout Builder.
Change the filter.

What should happen is that each instance of the block can have a different filter setting and display different content.

What happens is that changes made to either filter effect only the content displayed by the second Views block. The Ajax spinner stays on the page. Both filter forms have the same id attribute which is invalid HTML.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Views 

Last updated 1 minute ago

Created by

🇨🇦Canada ebremner

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024