Skip to content

[6.x] Improve Combobox performance#12499

Merged
jasonvarga merged 7 commits intomasterfrom
combobox-scrolling
Sep 19, 2025
Merged

[6.x] Improve Combobox performance#12499
jasonvarga merged 7 commits intomasterfrom
combobox-scrolling

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

@duncanmcclean duncanmcclean commented Sep 18, 2025

This pull request attempts to improve the performance of long Comboboxes by implementing Reka's ComboboxVirtualizer component.

I haven't been able to figure out how to scroll to the selected option when opening the dropdown, but I'll figure that out later. I've already got an issue open in Linear for it. 👍

This PR also fixes an issue where options would overflow the container, and where icons in the Icon fieldtype would cause layout shift when the icons load in.

Fixes #12475.

@duncanmcclean duncanmcclean linked an issue Sep 18, 2025 that may be closed by this pull request
@jackmcdade
Copy link
Copy Markdown
Member

jackmcdade commented Sep 19, 2025

@duncanmcclean Should we look at adding virtualization to address any possible performance concerns in #12475?

@duncanmcclean duncanmcclean changed the title [6.x] Prevent combobox options from overflowing [6.x] Improve Combobox performance & prevent options from overflowing Sep 19, 2025
@duncanmcclean duncanmcclean changed the title [6.x] Improve Combobox performance & prevent options from overflowing [6.x] Improve Combobox performance Sep 19, 2025
@duncanmcclean duncanmcclean marked this pull request as draft September 19, 2025 10:08
Since it relies on browser-specific APIs which we don't have in our tests.
@duncanmcclean duncanmcclean marked this pull request as ready for review September 19, 2025 13:41
@jasonvarga jasonvarga merged commit 88bb9db into master Sep 19, 2025
18 checks passed
@jasonvarga jasonvarga deleted the combobox-scrolling branch September 19, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[6.x] Select has problems with too many options

3 participants