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

feat: add maxOptionsToDisplay option to improve autocomplete performance on long lists #636

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JL102
Copy link
Contributor

@JL102 JL102 commented Nov 3, 2023

When using autocomplete with lists > 50ish in length, the creation of Svelte/DOM components in the list starts to become a performance bottleneck. It starts to become slow enough for an annoying user experience past 100. Since SMUI doesn't have any sort of virtual list component that I know of, simply limiting the number of rendered results is what I believe is a simple yet effective solution to the problem. In cases where you have a really long list but MUST render them all, then they can just keep the default value and let all the list items render.

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.

None yet

1 participant