Skip to content

Commit e58277f

Browse files
authored
fix(runtime-dom): "el._assign is not a function" in compat mode (#4121)
1 parent 16a0b23 commit e58277f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-dom/src/directives/vModel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
type AssignerFn = (value: any) => void
1919

2020
const getModelAssigner = (vnode: VNode): AssignerFn => {
21-
const fn = vnode.props!['onUpdate:modelValue']
21+
const fn = vnode.props!['onUpdate:modelValue'] || (__COMPAT__ && vnode.props!['onModelCompat:input'])
2222
return isArray(fn) ? value => invokeArrayFns(fn, value) : fn
2323
}
2424

0 commit comments

Comments
 (0)