Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromvuejs/vue

Commitb3a43ee

Browse files
hylinyyx990803
authored andcommitted
textarea with v-pre should skip compile (vuejs#3202)
1 parenta683e0f commitb3a43ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/compiler/compile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ function compileElement (el, options) {
326326
// textarea treats its text content as the initial value.
327327
// just bind it as an attr directive for value.
328328
if(el.tagName==='TEXTAREA'){
329+
// a textarea which has v-pre attr should skip complie.
330+
if(getAttr(el,'v-pre')!==null){
331+
returnskip
332+
}
329333
vartokens=parseText(el.value)
330334
if(tokens){
331335
el.setAttribute(':value',tokensToExp(tokens))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp