chore: unwrap value when validating props
This commit is contained in:
parent
2241ad7765
commit
66ad46ad7a
@ -135,7 +135,7 @@ export function resolveProps(
|
|||||||
}
|
}
|
||||||
// runtime validation
|
// runtime validation
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
validateProp(key, rawData[key], opt, Component, isAbsent)
|
validateProp(key, unwrap(rawData[key]), opt, Component, isAbsent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user