Sfoglia il codice sorgente

fix value interpolation regression (fix #2068)

Evan You 10 anni fa
parent
commit
9864be9107
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      src/directives/public/bind.js

+ 3 - 2
src/directives/public/bind.js

@@ -88,8 +88,9 @@ export default {
 
   handleSingle (attr, value) {
     const el = this.el
+    const interp = this.descriptor.interp
     if (
-      !this.descriptor.interp &&
+      !interp &&
       attrWithPropsRE.test(attr) &&
       attr in el
     ) {
@@ -101,7 +102,7 @@ export default {
     }
     // set model props
     var modelProp = modelProps[attr]
-    if (modelProp) {
+    if (!interp && modelProp) {
       el[modelProp] = value
       // update v-model if present
       var model = el.__v_model