Skip to content

Changes to unrelated ref causes v-model.lazy input to reset #4182

@KrakerXyz

Description

@KrakerXyz

Version

3.1.5

Reproduction link

https://codesandbox.io/s/recursing-keller-edvtl?file=/package.json

Steps to reproduce

See codesandbox example for minimum reproduction. Within this example, there's a setInterval running that increments the 'count' ref every one second. We also have a input bound to 'someNumber' using v-model.lazy.

If you begin typing into the input, you'll see that every time the interval ticks, it causes the input to reset it's value to that of the someNumber value.

What is expected?

Asynchronous changes to unrelated refs should not cause a lazily bound input to reset to it's v-model value.

What is actually happening?

Changes to an unrelated ref is causing lazily bound inputs to reset any in-progress changes back to the bound ref's value

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