Do not scroll to top, when loading more elements in view

Created on 3 July 2023, 12 months ago
Updated 10 July 2023, 12 months ago

Problem/Motivation

The original issue was found inside 🐛 Views viewsScrollTop (ScrollTopCommand AJAX command) doesn't work inside Drupal Off canvas dialogs Needs work . This issue is dedicated to only fix the original scrolling issue.

The problem is, that in a recent Drupal release, the AjaxCommand "viewsScrollTop" was renamed to "scrollTop". Meaning, that the removal of this command is not given inside "AjaxResponseSubscriber" and instead we are removing the old "viewsScrollTop" which does NOT exist in recent releases.

Steps to reproduce

Use a keyboard to navigate through an Infinite Scroll View with a "Load more" pager.
Expected: After hitting enter on "Load More", the first new node gets focus.
Actual: hitting tab takes you to the element following the view.

Proposed resolution

To ensure backwards compatibility, we should remove both the "scrollTop" and the "viewsScrollTop" command.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.69.0 2024