Skip to content

Commit 00b7822

Browse files
authored
Update componentVModel.ts
1 parent 10be4b8 commit 00b7822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/compat/componentVModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export function convertLegacyVModelProps(vnode: VNode) {
3939
// modelValue -> value
4040
// onUpdate:modelValue -> onModelCompat:input
4141
const model = (type as any).model || {}
42-
const mixins = (type as any).mixins || []
43-
mixins.forEach((m: any) => m.model && extend(model, m.model))
42+
const mixins = (type as any).mixins
43+
mixins && mixins.forEach((m: any) => m.model && extend(model, m.model))
4444
const { prop = 'value', event = 'input' } = model
4545
if (prop !== 'modelValue') {
4646
props[prop] = props.modelValue

0 commit comments

Comments
 (0)