We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a45204 commit 6bdbc87Copy full SHA for 6bdbc87
docs/guide/advanced/v-model.md
@@ -49,7 +49,11 @@ test('modelValue should be updated', async () => {
49
const wrapper = mount(Editor, {
50
props: {
51
modelValue: 'initialText',
52
- 'onUpdate:modelValue': (e) => wrapper.setProps({ modelValue: e })
+ 'onUpdate:modelValue': async (e) => {
53
+ // async/await necessary if modelValue is updated in the setup function
54
+ await nextTick()
55
+ await wrapper.setProps({ modelValue: e })
56
+ }
57
}
58
})
59
0 commit comments