Skip to content

v-pre doesn't work inside textarea? #3306

@rjurado01

Description

@rjurado01

Hello, I have this example: https://jsfiddle.net/rjurado/tq136Lwr/

<textarea id="textarea" v-pre>
  {{works}}
</textarea>

<div id="example">
  <p v-pre>{{ work }}</p>
  <textarea v-pre>{{ no wokrs }}</textarea>
</div>
new Vue({ el: '#textarea' });
new Vue({ el: '#example' });

Why second textarea show empty?
If you inspect it you can see this:

<textarea :value="no wokrs">{{ no wokrs }}</textarea>

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