Skip to content

Commit f38fbc3

Browse files
committed
v-bind: update v-model on same element when value bindings change
1 parent 56dd2cf commit f38fbc3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/directives/public/bind.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ module.exports = {
103103
var modelProp = modelProps[attr]
104104
if (modelProp) {
105105
this.el[modelProp] = value
106+
// update v-model if present
107+
var model = this.el.__v_model
108+
if (model) {
109+
model.listener()
110+
}
106111
}
107112
}
108113
}

0 commit comments

Comments
 (0)