react-spectrum
react-spectrum copied to clipboard
RAC Select: selected item is not scrolled into view
Provide a general summary of the issue here
Occurs when using a Select with enough items in the popover to cause scrolling. On subsequent re-opens of the Select, the popover's scroll position remains at the top of the list, even if the selected item is below the fold of the popover.
https://github.com/user-attachments/assets/220683ac-c3c0-4c96-b216-92daa799ddc7
๐ค Expected Behavior?
The Popover should scrollIntoView on the currently selected ListBoxItem
๐ฏ Current Behavior
The Popover's scrollbar remains at the top of the list when re-opening the Select
๐ Possible Solution
No response
๐ฆ Context
No response
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/p/sandbox/jsmn3c
Version
What browsers are you seeing the problem on?
Firefox, Chrome, Safari
If other, please specify.
No response
What operating system are you using?
MacOS Sequoia 15.5
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response