Skip to content

Commit a6fae5d

Browse files
committed
prop: fix new syntax literal value in dynamic bind (fix vuejs#1428)
1 parent 4498289 commit a6fae5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/compile-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ module.exports = function compileProps (el, propOptions) {
119119
prop.filters = parsed.filters
120120
// check literal
121121
if (literalValueRE.test(value)) {
122-
prop.mode = propBindingModes.ONE_TIME
122+
prop.raw = _.stripQuotes(value) || value
123123
} else {
124124
prop.dynamic = true
125125
// check non-settable path for two-way bindings

0 commit comments

Comments
 (0)