on master help sign in
indigo-react: use checkbox's .checked

Instead of .value. .checked was coming up undefined.

commit22f329c197c8054bdd5f1e4f590cb3e054750370 authorFang <git@fang.io> dateSat 18 Jul 2020, 00:47 (6 years ago) parent404f794
1 file changed+3−3
src/indigo-react/components/CheckboxInput.js+3−3
src/indigo-react/components/CheckboxInput.js+3−3
@@ -55,15 +55,15 @@ export default function CheckboxInput({
5555 mr3: !inline,
5656 mr1: inline,
5757 'bg-gray1': disabled,
58− 'bg-black white b-black': !disabled && (input.value || white),
59− 'bg-white black b-black': !disabled && !input.value,
58+ 'bg-black white b-black': !disabled && (input.checked || white),
59+ 'bg-white black b-black': !disabled && !input.checked,
6060 })}
6161 style={{
6262 height: '14px',
6363 width: '14px',
6464 ...style,
6565 }}>
66− {input.value && '✓'}
66+ {input.checked && '✓'}
6767 </Flex>
6868 {label}
6969 </Flex.Item>