]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: unwrap value when validating props
authorEvan You <yyx990803@gmail.com>
Tue, 2 Oct 2018 22:31:38 +0000 (18:31 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 2 Oct 2018 22:31:38 +0000 (18:31 -0400)
packages/core/src/componentProps.ts

index f48ae1a93729801d99786e4298db56e295e44052..0d1f0e8aa08fc9aaa0276b316df3ecfbb07394f3 100644 (file)
@@ -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)
       }
     }
   }