From f3e15f633edfa2d4f116bf52fd5dee02655567e3 Mon Sep 17 00:00:00 2001 From: Austin Keener Date: Sun, 4 Jul 2021 18:32:44 -0400 Subject: [PATCH] fix(compat): fix props check for v-model compat warning (#4056) --- packages/runtime-core/src/compat/compatConfig.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/compat/compatConfig.ts b/packages/runtime-core/src/compat/compatConfig.ts index a6ab9854bbe..05ecc3e72ea 100644 --- a/packages/runtime-core/src/compat/compatConfig.ts +++ b/packages/runtime-core/src/compat/compatConfig.ts @@ -398,9 +398,10 @@ export const deprecationData: Record = { DeprecationTypes.COMPONENT_V_MODEL }: false }\`.` if ( - comp.props && isArray(comp.props) + comp.props && + (isArray(comp.props) ? comp.props.includes('modelValue') - : hasOwn(comp.props, 'modelValue') + : hasOwn(comp.props, 'modelValue')) ) { return ( `Component delcares "modelValue" prop, which is Vue 3 usage, but ` +