Skip to content

@input.once preventing the update of the input if used with v-model #6552

Closed
@mcmillenb

Description

@mcmillenb

Version

2.4.2

Reproduction link

https://jsfiddle.net/vwtLfh2e/1/

Steps to reproduce

Type one character in the input

What is expected?

The character is added to the input, the value property is updated to reflect the change, and the setDirty method is called, setting isDirty to true

What is actually happening?

The setDirty method is called, but nothing is added to the input and the value does not update.


After the first character entry into the input, the model binding works as expected. It seems that using @input.once="someMethod" is preventing the expected behavior of v-model.

Found via this StackOverflow question

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