Skip to content

Commit

Permalink
fix(Checkbox): number 0 should be rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed May 15, 2019
1 parent 8c6a3af commit 93318d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkbox/checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class Checkbox extends UIState {
{childInput}
</span>
{[label, children].map((item, i) =>
item ? (
[undefined, null].indexOf(item) === -1 ? (
<span key={i} className={labelCls}>
{item}
</span>
Expand Down

0 comments on commit 93318d8

Please sign in to comment.