adobe/react-spectrum

Searchable Select: scroll to selected item does not work

開放

#9,031 建立於 2025年10月14日

 (13 則留言) (0 個反應) (0 位負責人)TypeScript (1,500 個分叉)auto 404
Autocompletebughelp wanted

倉庫指標

星標
 (15,634 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Provide a general summary of the issue here

If we have a searchable select with a long item list, it should scroll to the first selected item on open.

🤔 Expected Behavior?

Scroll to the first selected item.

😯 Current Behavior

It does not scroll.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

https://stackblitz.com/edit/rac-searchable-select-scroll-into-view?file=src%2FSelect.tsx

Version

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

貢獻者指南