Skip to content

Collections are not scrolling if scroll on body in the Chrome browser #8977

Description

@ValeraS

Provide a general summary of the issue here

After changes in #8715, keyboard navigation does not scroll collection's items into viewport if scroll on the body in Chrome browser.

🤔 Expected Behavior?

Collection's items scroll into viewport.

😯 Current Behavior

subj

💁 Possible Solution

let scrollParents = getScrollParents(targetElement);

let scrollParents = getScrollParents(targetElement);
if (!isScrollPrevented) {
    scrollParent.push(root);
}

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/xenodochial-dream-kdff5w

Screen.Recording.2025-10-06.at.17.23.22.mov

Version

react-aria-components@1.13.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macos

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions