Skip to content

Regression in scroll behavior of AJAX views with exposed filters #5449

@bberndt-uaz

Description

@bberndt-uaz

Problem/Motivation

When a user interacts with an exposed filter for a view that uses AJAX, the page now scrolls to the top of the view element. A regression was introduced with this Drupal core change for 10.6.x and 11.x:

There is an open Drupal core issue for this:

This regression affects AJAX views in both Quickstart 3.3.x and the pull request to upgrade Quickstart 2.x to Drupal 10.6.x.

To Reproduce

Steps to reproduce the behavior:

  1. Go to /calendar (or any view with an exposed filter that uses AJAX)
  2. Click on one of the filters
  3. Observe that the page scrolls to the top of the view element

Proposed resolution

Use a patch for Drupal core to revert to the previous behavior.

Expected behavior

Using filters should not automatically scroll the page unless specifically intended for that view.

Related issues

Metadata

Metadata

Assignees

Labels

3.3.x onlyDrupalWaiting on a fix from the Drupal communitybackport-2.xChanges to be back-ported to the 2.x development branchhigh priorityMust get done for this milestone

Type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions