Skip to content

[bug] a custom component v-model bug #4152

Closed
@lepture

Description

@lepture

Tested in all 2.0.x versions.

https://jsfiddle.net/2x50quv8/

When custom component is bind with v-model, computed properties will be called every time when value changed.

Open the jsfiddle link, click on a, b, c, the console will print hello on every click.

Even worse, if you text in the input, which has no relationship with the haha-test component, the haha-test component would still echo hello in console.log.

But if you don't v-model the tag, there will be no console.log.

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