Skip to content

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

@ValeraS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions