Skip to content

Commit

Permalink
fix value interpolation regression (fix vuejs#2068)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 23, 2015
1 parent 212eb80 commit 9864be9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/directives/public/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand All @@ -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
Expand Down

0 comments on commit 9864be9

Please sign in to comment.