fix(runtime-dom): "el._assign is not a function" in compat mode (#4121)

This commit is contained in:
Julian Hundeloh
2022-05-10 03:58:51 +02:00
committed by GitHub
parent 16a0b232d7
commit e58277f6ea

View File

@@ -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
}