Problem/Motivation
The original issue was found inside #3300426: Views viewsScrollTop (ScrollTopCommand AJAX command) doesn't work inside Drupal Off canvas dialogs. 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
| Comment | File | Size | Author |
|---|
Issue fork views_infinite_scroll-3371899
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
grevil commentedComment #3
grevil commentedComment #5
grevil commentedWorks great! Please review! :)
Comment #6
anybody@Grevil: Please add a comment and eventually link to the change record to explain the change.
RTBC afterwards, just missing the explanation.
Comment #7
grevil commentedDone. Is the explanation enough?
Comment #10
anybodyThanks, I think that's fine!
Hopefully this can be merged soon, currently this is broken with Drupal 10.x!
Comment #11
isaacrc commentedI can also confirm that the patch fixed the issue in Drupal 10.1 Thanks!
Comment #12
2dareis2do commentedHow can I apply this patch?
Comment #13
2dareis2do commentedComment #14
2dareis2do commentedOk works for me on drupal 10.1
Comment #15
zenimagine commentedPatch #14 works for me with Drupal 10.1
Comment #17
anybodyThanks @Grevil, merged. New stable release soon!