Skip to content

Commit c44d36f

Browse files
fix: use Vue component instead of input in v-model section (vuejs#304)
* fix: use Vue component instead of `input` in v-model section * fix: use correct event name
1 parent 8f856a6 commit c44d36f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/render-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ The `v-model` directive is expanded to `modelValue` and `onUpdate:modelValue` pr
275275
```js
276276
props: ['modelValue'],
277277
render() {
278-
return Vue.h('input', {
278+
return Vue.h(SomeComponent, {
279279
modelValue: this.modelValue,
280-
'onUpdate:modelValue': value => this.$emit('onUpdate:modelValue', value)
280+
'onUpdate:modelValue': value => this.$emit('update:modelValue', value)
281281
})
282282
}
283283
```

0 commit comments

Comments
 (0)