Make Views AJAX scroll to top optional

Created on 2 April 2022, over 2 years ago
Updated 12 September 2024, 2 months ago

Problem/Motivation

Views uses an automatic "scroll to top" behaviour when using AJAX. While it can be useful in some situations (eg. switching to the next page of a long list) in other situations it can be annoying (eg. Views block with exposed filter in the middle of a page).

Steps to reproduce

Create Views block with exposed filter that uses AJAX and place it in the middle of a page. Use the filter. The page will scroll to the top, above the view.

Proposed resolution

Add a setting option to Views AJAX UI to disable the "scroll to top" behaviour. It should be possible to set at the display level.

Remaining tasks

โ€ฆ

User interface changes

The Views UI will have a setting option for AJAX on every display to disable the "scroll to top" behaviour.

API changes

โ€ฆ

Data model changes

โ€ฆ

Release notes snippet

โ€ฆ

โœจ Feature request
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Viewsย  โ†’

Last updated 27 minutes ago

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary thamas Hungary

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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