From: Evan You Date: Tue, 2 Oct 2018 22:31:38 +0000 (-0400) Subject: chore: unwrap value when validating props X-Git-Tag: v3.0.0-alpha.0~1158 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66ad46ad7ab01e5aa8b3985ecdc1034d0f9676ab;p=thirdparty%2Fvuejs%2Fcore.git chore: unwrap value when validating props --- diff --git a/packages/core/src/componentProps.ts b/packages/core/src/componentProps.ts index f48ae1a937..0d1f0e8aa0 100644 --- a/packages/core/src/componentProps.ts +++ b/packages/core/src/componentProps.ts @@ -135,7 +135,7 @@ export function resolveProps( } // runtime validation if (__DEV__) { - validateProp(key, rawData[key], opt, Component, isAbsent) + validateProp(key, unwrap(rawData[key]), opt, Component, isAbsent) } } }