Skip to content

Textarea's initial value is emptied in component if it contains html tags #5121

@schtr4jh

Description

@schtr4jh

Jsfiddle vue v2.2.1: https://jsfiddle.net/dobuznsc/1/
Jsfiddle vue v1.0.12: https://jsfiddle.net/dobuznsc/2/

As you can see, there're 3 textareas and inputs in 3 different scopes:

  • out of vue / body scope: textarea and input values as preserved, as expected
  • root vue instance scope: textarea and input values are preserved, as expected
  • component scope: input value is preserved, textarea's is not (in v2), however, they are preserved in v1

My question is, why are textareas in root and component scope handled differently, is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions