Commit 119e4d3
Fix v-model section (#813)
Hi,
v-model section requires extra line to make this code complete. Otherwise it causes a problem:
```
render: function (createElement) {
var self = this
return createElement('input', {
domProps: {
value: self.value
},
on: {
input: function (event) {
self.value = event.target.value
// This line should be added
self.$emit('input', event.target.value)
}
}
})
}
```
Otherwise the value is updated in the one way. Please see example http://codepen.io/asolopovas/pen/OpWVxa?editors=10111 parent 3bc0435 commit 119e4d3
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| |||
0 commit comments