Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combobox: Set combobox story to scroll to selected option on open #33789

Conversation

Mitch-At-Work
Copy link
Contributor

Previous Behavior

Combobox did not scroll to it's currently selected item as it's virtualized on open

New Behavior

Combobox now scrolls to item on open, relies on timeout to scroll on the stack immediately after render - I did try implement this on state change of open with useEffect, however it was calling the scrollTo prior to the open render completion.

Related Issue(s)

Copy link

github-actions bot commented Feb 5, 2025

📊 Bundle size report

✅ No changes found

Copy link

github-actions bot commented Feb 5, 2025

Pull request demo site: URL

@Mitch-At-Work Mitch-At-Work merged commit e242da3 into microsoft:master Feb 12, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ComboBox does not open to the selected option when using Virtualizer.
2 participants