Skip to content

v-model support with functional components #8230

@miljan-aleksic

Description

@miljan-aleksic

Version

2.5.16

Reproduction link

https://codesandbox.io/s/0mj5l70xwn

Steps to reproduce

Set two inputs with v-model, one directly and another using a functional component as wrapper.

What is expected?

The same binding behaviour on both inputs.

What is actually happening?

Only the standard input works, the functional component input doesn't get bind the value but it does get binded an input event with an unexpected behaviout.


The reason I would wrap an input into a functional component is to customize it look, while expecting vue to still apply all the v-model workarounds around it.

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