We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a683e0f commit b3a43eeCopy full SHA for b3a43ee
src/compiler/compile.js
@@ -326,6 +326,10 @@ function compileElement (el, options) {
326
// textarea treats its text content as the initial value.
327
// just bind it as an attr directive for value.
328
if (el.tagName === 'TEXTAREA') {
329
+ // a textarea which has v-pre attr should skip complie.
330
+ if (getAttr(el, 'v-pre') !== null) {
331
+ return skip
332
+ }
333
var tokens = parseText(el.value)
334
if (tokens) {
335
el.setAttribute(':value', tokensToExp(tokens))
0 commit comments