Skip to content

v-model.lazy in custom component with moment instance as value does not sync when component emits 'change' #5743

@radisb

Description

@radisb

Version

2.3.3

Reproduction link

https://jsfiddle.net/xnyhfL9h/

Steps to reproduce

Create a custom component , accept a moment instance through a prop, clone it, modify the clone and emit the modified clone using a 'change' event. If the data has been bound to the parent through v-model.lazy, the parent's data does not update. However if it is bound with separate :value and @change , then it updates correctly.

What is expected?

The parent's value should be updated

What is actually happening?

Nothing. Parent bound data does not get updated

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