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

Created on 4 August 2020, over 4 years ago
Updated 16 March 2023, over 1 year 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

9.5

Component
Views 

Last updated about 9 hours ago

Created by

🇨🇦Canada ebremner

Live updates comments and jobs are added and updated live.
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.71.5 2024