Skip to content

Reassigning $$props to another variable and using the spread operator casues issues with input's #5118

Closed
@d0x2f

Description

@d0x2f

Describe the bug
If you reassign $$props to another variable and use it with the spread operator on two or more inputs, typing into one clears the value from the other.
Only the displayed value is cleared, any bound variables retain the correct value.

To Reproduce
https://svelte.dev/repl/59246207fcc949b1b5691b045d3bbd7e?version=3.24.0

Type something in each input box and observe the behaviour for the top two.
Typing in one clears the other.

Expected behavior
Previously to v3.24.0, it was possible to use $$props this way without any issue.

Information about your Svelte project:
Firefox 79b, Arch Linux, Svelte 3.24.0, rollup

Severity
This isn't a blocker as such because, depending on the specific case, a workaround ought to be easy to find.
However it's exhibited in a dependency of my project in which I can't readily implement a work around.
Namely sveltestrap (issue bestguy/sveltestrap#157).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions