Views ajax exposed filter works only once

Created on 25 March 2024, 3 months ago
Updated 2 May 2024, about 2 months ago

Problem/Motivation

Views ajax exposed filters doesn't work any more since Drupal 10.1. Is it a cache problem ?

Steps to reproduce

  1. Authenticate as admin in your website.
  2. Open the appearance page
  3. Enable Stark theme and set it as default
  4. Create 2 taxonomy vocabularies. Examples: countries and categories
  5. Create the list of termes
  6. Create a content type whose 2 fields are linked each to a taxonomy
  7. Create some contents of this content type, with different taxonomies.
  8. Create a page view of this type of content
  9. In the view, add 2 exposed filters based on the 2 content fields
  10. Turn the "Use Ajax" option to YES
  11. Use the "basic" exposed filter
  12. Save the view
  1. Open the view with its url
  2. Choose a filter value and click on [Apply]: the filter is working at this first case
  3. Choose another filter value and click on [Apply]: the filter value is flashing, reurning to the first value, the operation seems to stop here: no JS message in the console, no dblog error :-(
  4. Using Better Exposed Filter module with autosubmit returns the error:

    "An error occurred during the execution of the Ajax response: TypeError: Cannot read properties of undefined (reading 'top')"

Updating to Drupal 10.2 won't fix the issue.

Proposed resolution

I'm not sure it is an ajax or a cache issue.
Who could help on this case, please ?
Are you able to reproduce the issue ?

Thanks by advance.

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
ViewsΒ  β†’

Last updated about 4 hours ago

Created by

πŸ‡«πŸ‡·France frondeau Nantes, FRANCE

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

Comments & Activities

Production build 0.69.0 2024