fix(runtime-dom): "el._assign is not a function" in compat mode (#4121)
This commit is contained in:
parent
16a0b232d7
commit
e58277f6ea
@ -18,7 +18,7 @@ import {
|
||||
type AssignerFn = (value: any) => void
|
||||
|
||||
const getModelAssigner = (vnode: VNode): AssignerFn => {
|
||||
const fn = vnode.props!['onUpdate:modelValue']
|
||||
const fn = vnode.props!['onUpdate:modelValue'] || (__COMPAT__ && vnode.props!['onModelCompat:input'])
|
||||
return isArray(fn) ? value => invokeArrayFns(fn, value) : fn
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user