Searchable Select: Resizing window causes the list scroll position to reset
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 1.6k
- Avg merge
- 3d 9m
- Merged PRs (30d)
- 59
Description
### Provide a general summary of the issue here
https://github.com/adobe/react-spectrum/issues/9031#issuecomment-3408593863
### 🤔 Expected Behavior?
Like the normal Select, the scroll position should be maintained.
### 😯 Current Behavior
The list scrolled to the top on window resize.
### 💁 Possible Solution
_No response_
### 🔦 Context
_No response_
### 🖥️ Steps to Reproduce
https://stackblitz.com/edit/rac-searchable-select-enter-issue-pa7htvsl?file=src%2FSelect.tsx
Screen Record
https://github.com/user-attachments/assets/eb8cac1f-77f6-46ee-bdd2-36a7cf9f28fa
### 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_
Contributor guide
Research direction
Start with the linked StackBlitz reproduction and compare the Searchable Select behavior with the normal Select during a window resize. Trace the list's scroll handling and verify that resizing preserves the current scroll position rather than returning to the top.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100