We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
undefined
1 parent 1a84f26 commit 90d280aCopy full SHA for 90d280a
src/props.ts
@@ -21,8 +21,8 @@ export const createPropsProxy = (
21
22
const isConstructor = isBuiltInTypeConstructor(definition)
23
const providesDefault = !isConstructor
24
- if (value === undefined && providesDefault)
25
- return getDefaultProp(definition)
+ if (value === undefined)
+ return providesDefault ? getDefaultProp(definition) : undefined
26
27
const type = isConstructor
28
? definition.prototype.constructor.name.toLowerCase()
0 commit comments