Skip to content

Programmatic input into a text field doesn't update the binding #4122

@antony

Description

@antony

Describe the bug
Can't quite figure out if this is desirable behaviour or not (and I couldn't find a previous issue for it), but it looks like when you paste into (or use Javascript to set the value of) a bound field, the binding does not get updated.

This is troublesome when considering a login field where a password-store like 1Password or LastPass or Chrome Autofill is used.

To Reproduce
I've reproduced the issue here.

https://svelte.dev/repl/85e2b7097e8f4255b0fc5757988ebdb9?version=3.16.4

Expected behavior
I expect changing a field's value to update any bindings it has.

Information about your Svelte project:

  • Svelte any including 3.16.4

Severity
I can work around it, it's more of a problem for "doing the most obvious thing".

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