Skip to content

Commit

Permalink
support 0 as a value for Radios in RadioGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Dec 28, 2020
1 parent 144ea7b commit 7f1497e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/radio-group/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function RadioGroup(
...radioState,
disabled,
// controlled or uncontrolled
state: checked || radioState.state,
setState: onChange || radioState.setState,
state: checked ?? radioState.state,
setState: onChange ?? radioState.setState,
};

return (
Expand Down

0 comments on commit 7f1497e

Please sign in to comment.