Skip to content

Two-way binding for a component makes two updates in a reactive block if bind:value=<object> #3075

Closed
@hapcode

Description

@hapcode

Primitive types and bindings in native <input> work fine. See REPL.

I added <svelte:options immutable={true}/> and the problem has gone. However I see inconsistent behaviour for <Custom bind:value={object.prop}/> and
<input bind:value={object.prop}/> when immutable is false. Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions