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

Performance issues with sl-select and a high number of sl-options #2317

Open
kirchsuSICKAG opened this issue Dec 18, 2024 · 0 comments · May be fixed by #2318
Open

Performance issues with sl-select and a high number of sl-options #2317

kirchsuSICKAG opened this issue Dec 18, 2024 · 0 comments · May be fixed by #2318
Labels
bug Things that aren't working right in the library.

Comments

@kirchsuSICKAG
Copy link
Contributor

Describe the bug

When using the sl-select with a high number of sl-options, it takes some time until the sl-select is done with rendering.

Demo

See following codepen, where I added 4000 options to a select and it takes quite some time until the select is finished with rendering:
https://codepen.io/kirchsuSICKAG/pen/gbYmrmJ?editors=1010

Browser / OS

  • OS: all
  • Browser: all
  • Browser version: [e.g. 22]

Additional information

This problem occurs since shoelace version 2.19.0 with the fix of #1971
It can be fixed by not triggering the "handleDefaultSlotChange" of the select for the initial loading.

I am willing to provide a PR for this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant