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

Mutating state when using bind:value together with multiple prop does not update the component #272

Closed
jochienabuurs opened this issue Dec 17, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jochienabuurs
Copy link

I've created a REPL to showcase the behavior.

https://svelte.dev/playground/7d57062c8ca24dd589e486f38eec92ef?version=5.14.2

I would expect the selected options to be cleared when pressing the erase button.
The state gets reset but the svelecte UI does not reflect that.

Am I missing something here?

@mskocik mskocik added the bug Something isn't working label Dec 17, 2024
@mskocik
Copy link
Owner

mskocik commented Dec 17, 2024

What an unbelievable bug! Will fix it tomorrow ASAP. Must be some issue with infinite loop guard, when comparing array values. In single select works correctly.

@mskocik mskocik self-assigned this Dec 17, 2024
@jochienabuurs
Copy link
Author

jochienabuurs commented Dec 18, 2024

Yeah, in single select it works like a charm.

Could it be that this was working in 5.0.0@next-xxx as I've used it extensively but never noticed it until i migrated to v5.0.0 just a few days ago.

@mskocik
Copy link
Owner

mskocik commented Dec 18, 2024

The funny thing is I had code in place. It was just commented out, because in the meantime I forgot why it was required. Now I know 😆

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
None yet
Development

No branches or pull requests

2 participants