Skip to content

Commit b514815

Browse files
committed
Fix falsy prop value overwritten by state value
1 parent 1fa4a29 commit b514815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Calendar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default class Calendar extends Component {
153153
return valueState;
154154
}
155155

156-
return valueProps || valueState;
156+
return valueProps !== undefined ? valueProps : valueState;
157157
}
158158

159159
get valueType() {

0 commit comments

Comments
 (0)