Skip to content

Commit 90d280a

Browse files
author
arnoson
committed
fix: don't parse undefined
closes #5
1 parent 1a84f26 commit 90d280a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/props.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export const createPropsProxy = (
2121

2222
const isConstructor = isBuiltInTypeConstructor(definition)
2323
const providesDefault = !isConstructor
24-
if (value === undefined && providesDefault)
25-
return getDefaultProp(definition)
24+
if (value === undefined)
25+
return providesDefault ? getDefaultProp(definition) : undefined
2626

2727
const type = isConstructor
2828
? definition.prototype.constructor.name.toLowerCase()

0 commit comments

Comments
 (0)