Skip to content

[Regression from v2.2+] Returning an input element in render function fails two-way binding #7683

Closed
@leonfu103

Description

@leonfu103

Version

2.5.13

Reproduction link

https://codepen.io/leonfu103/pen/YevXbX

Steps to reproduce

Write a functional component with a render function that returns an input element, and a 'clear' button to clear the value of the input element

What is expected?

The two-way binding on the returned component should work as on the html input element.

What is actually happening?

If you click on the 'clear' button, it doesn't clear the value of the input element.

But if you use older version of Vue (older than V2.2.0, e.g V2.1.10) it works OK.

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