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

Slow dropdown with hundreds of options #165

Closed
giordanovi opened this issue Nov 18, 2021 · 4 comments
Closed

Slow dropdown with hundreds of options #165

giordanovi opened this issue Nov 18, 2021 · 4 comments

Comments

@giordanovi
Copy link

The dropdown becomes slow in interactions when there are hundreds of options.
How can i solve this issue?

@Zeeex
Copy link

Zeeex commented Nov 19, 2021

Option 1 (easy):
You can use "limit: 30" the number of entries to 30, then use "searchable: true" to enable searching, filter out results from local array with the "@search-change" event

Option 2 (hard):
Create virtual scrolling with DOM manipulation within dropdown menu

@giordanovi
Copy link
Author

giordanovi commented Nov 19, 2021 via email

@adamberecz
Copy link
Collaborator

Duplicate #76.

adamberecz added a commit that referenced this issue May 30, 2022
@adamberecz
Copy link
Collaborator

Added infinite scroll in 2.4.0. Here's an example:
https://github.com/vueform/multiselect#load-async-options-from-api-on-open-with-infinite-scroll

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

No branches or pull requests

3 participants