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

[MultiSelectField] - Immediately apply changes freezes page #507

Closed
sergejbog opened this issue Nov 2, 2024 · 3 comments
Closed

[MultiSelectField] - Immediately apply changes freezes page #507

sergejbog opened this issue Nov 2, 2024 · 3 comments

Comments

@sergejbog
Copy link

If you try to select an option for the multiselect field it freezes the whole page and makes the tab unresponsive. See the video below.

chrome_KIkfAFdOkY.mp4
@sergejbog sergejbog changed the title MultiSelect Field - Immediately apply changes freezes page [MultiSelectField] - Immediately apply changes freezes page Nov 2, 2024
@sergejbog
Copy link
Author

I just saw that the same problem exists on the MultiSelect component as well.

@techniq
Copy link
Owner

techniq commented Nov 2, 2024

Thanks for the report @sergejbog . I was tracking this in issue #144 and is one of the last regressions with Svelte 5. It's due to an infinite loop on apply/change that I need to investigate. Should have a solution this weekend once I get some time to dig into it.

techniq added a commit that referenced this issue Nov 3, 2024
techniq added a commit that referenced this issue Nov 3, 2024
… and Svelte 5 (#508)

* feat(selectionStore): Add `setSelection()` method to override selection (or (re-)initialize after creation)

* fix(MultiSelect): Resolve infinite loop when using `mode="immediate"` and Svelte 5.  Resovles #507
@techniq
Copy link
Owner

techniq commented Nov 3, 2024

Resolved in 0.75.4 via 2524959

@techniq techniq closed this as completed Nov 3, 2024
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

2 participants