react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

RAC Select: selected item is not scrolled into view

Open E-Baird opened this issue 4 months ago โ€ข 4 comments

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

[email protected]

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

E-Baird avatar Aug 11 '25 14:08 E-Baird