We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92e7330 commit 4f17be7Copy full SHA for 4f17be7
packages/runtime-core/src/compat/componentVModel.ts
@@ -39,8 +39,10 @@ export function convertLegacyVModelProps(vnode: VNode) {
39
// modelValue -> value
40
// onUpdate:modelValue -> onModelCompat:input
41
const { prop = 'value', event = 'input' } = (type as any).model || {}
42
- props[prop] = props.modelValue
43
- delete props.modelValue
+ if (prop !== 'modelValue') {
+ props[prop] = props.modelValue
44
+ delete props.modelValue
45
+ }
46
// important: update dynamic props
47
if (dynamicProps) {
48
dynamicProps[dynamicProps.indexOf('modelValue')] = prop
0 commit comments