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 10be4b8 commit 00b7822Copy full SHA for 00b7822
packages/runtime-core/src/compat/componentVModel.ts
@@ -39,8 +39,8 @@ export function convertLegacyVModelProps(vnode: VNode) {
39
// modelValue -> value
40
// onUpdate:modelValue -> onModelCompat:input
41
const model = (type as any).model || {}
42
- const mixins = (type as any).mixins || []
43
- mixins.forEach((m: any) => m.model && extend(model, m.model))
+ const mixins = (type as any).mixins
+ mixins && mixins.forEach((m: any) => m.model && extend(model, m.model))
44
const { prop = 'value', event = 'input' } = model
45
if (prop !== 'modelValue') {
46
props[prop] = props.modelValue
0 commit comments