Make Views AJAX scroll to top optional

Created on 2 April 2022, almost 3 years ago
Updated 7 July 2023, over 1 year 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

10.0 โœจ

Component
Viewsย  โ†’

Last updated 2 days ago

Created by

๐Ÿ‡ญ๐Ÿ‡บHungary thamas Hungary

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