From 7f1497e1f53228817eb11937b2f2cfcb3fcb677a Mon Sep 17 00:00:00 2001 From: Mitchell Austin Date: Sun, 27 Dec 2020 19:27:01 -0800 Subject: [PATCH] support 0 as a value for Radios in RadioGroup --- packages/components/src/radio-group/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/radio-group/index.js b/packages/components/src/radio-group/index.js index 2c024d6c1ce00..517af1c0dcba6 100644 --- a/packages/components/src/radio-group/index.js +++ b/packages/components/src/radio-group/index.js @@ -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 (