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

SelectField is laggy when the number of items is very large #318

Open
gabro opened this issue Jul 27, 2022 · 1 comment
Open

SelectField is laggy when the number of items is very large #318

gabro opened this issue Jul 27, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gabro
Copy link
Member

gabro commented Jul 27, 2022

For example, if you have a SelectField with all the countries in the world, then it starts to lag.

This is due to the lack of virtualization in react-select, see JedWatson/react-select#3128 and JedWatson/react-select#2850 for more info.

Judging from those threads, a promising solution would be to have a custom MenuList built on top of react-virtualized's List

@gabro gabro added the bug Something isn't working label Jul 27, 2022
@marcopiii
Copy link
Member

I reproduced the bug in this playroom

@marcopiii marcopiii self-assigned this Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To do
Development

No branches or pull requests

2 participants