We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16a0b23 commit e58277fCopy full SHA for e58277f
packages/runtime-dom/src/directives/vModel.ts
@@ -18,7 +18,7 @@ import {
18
type AssignerFn = (value: any) => void
19
20
const getModelAssigner = (vnode: VNode): AssignerFn => {
21
- const fn = vnode.props!['onUpdate:modelValue']
+ const fn = vnode.props!['onUpdate:modelValue'] || (__COMPAT__ && vnode.props!['onModelCompat:input'])
22
return isArray(fn) ? value => invokeArrayFns(fn, value) : fn
23
}
24
0 commit comments