You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collections are not scrolling if scroll on body in the Chrome browser #8977
Thanks for catching this, reproduced locally. I think your proposed fix makes sense since we were previously relying on the assumption that that portion of the scroll code would only fire if scrolling was being prevented, would you like to make a PR for it?
@ValeraS thanks for catching this, looks like it broke as a part of #9146. We actually don't include the root as a part of the scrollParents anymore due to the change in
which should exclude the horizontal scrollbar. That seems to improve behavior but the scrolling isn't quite working, it scrolls to the proper position but then undos its progress with another scrollIntoView call
Activity
LFDanLu commentedon Oct 6, 2025
Thanks for catching this, reproduced locally. I think your proposed fix makes sense since we were previously relying on the assumption that that portion of the scroll code would only fire if scrolling was being prevented, would you like to make a PR for it?
ValeraS commentedon Mar 11, 2026
@LFDanLu Hi, it's again does not work on react-aria-components v.1.16.0
LFDanLu commentedon Mar 11, 2026
@ValeraS thanks for catching this, looks like it broke as a part of #9146. We actually don't include the root as a part of the scrollParents anymore due to the change in
react-spectrum/packages/@react-aria/utils/src/getScrollParents.ts
Lines 19 to 24 in 4b48a50
However, doing that seems to be insufficient. It now seems to attempt to scroll the table body itself as you get partially down the table and triggers
react-spectrum/packages/@react-aria/utils/src/scrollIntoView.ts
Lines 159 to 164 in 4b48a50
even though the item you are keyboard navigating to is already in view. I think
react-spectrum/packages/@react-aria/utils/src/scrollIntoView.ts
Line 76 in 4b48a50
react-spectrum/packages/@react-aria/utils/src/scrollIntoView.ts
Line 49 in 4b48a50
which should exclude the horizontal scrollbar. That seems to improve behavior but the scrolling isn't quite working, it scrolls to the proper position but then undos its progress with another scrollIntoView call
LFDanLu commentedon Mar 11, 2026
I've opened a PR for this #9780. Still needs to go through some through testing/logic check, feel free to take a look if you'd like
LFDanLu commentedon Apr 7, 2026
This got fixed by #9784 as a side effect, but #9780 has some extra fixes with the scroll into view calculations