From 66ad46ad7ab01e5aa8b3985ecdc1034d0f9676ab Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 2 Oct 2018 18:31:38 -0400 Subject: [PATCH] chore: unwrap value when validating props --- packages/core/src/componentProps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/componentProps.ts b/packages/core/src/componentProps.ts index f48ae1a9..0d1f0e8a 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) } } }