-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Labels
bugSomething isn't workingSomething isn't workingdxDeveloper experienceDeveloper experiencetestsTest all the thingsTest all the things
Description
I'm surprised to read in the docs that the selected
prop is static ("[...] or passed as prop to set pre-selected options that will already be populated when the component mounts before any user interaction").
In my case, the selected options depend on the external context, the URL params, and when I go back/forward the MultiSelect has to update in consequence.
This worked as I expect with version 6.1.0 but since version 7.1.0, the selected
prop has become static (it does not take new values into account).
Is this intended behavior?
As a workaround, I did use:
{#key selected}
<MultiSelect {options} {selected} />
{/key}
Here is a quick-made REPL to demonstrate this: https://svelte.dev/repl/153f9049a9b849aa9fcc95117061a867?version=3.52.0
janosh
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdxDeveloper experienceDeveloper experiencetestsTest all the thingsTest all the things