on master help sign in
indigo-react: use checkbox's .checked
22f329cFang
src/indigo-react/components/CheckboxInput.js+3−3
@@ -55,15 +55,15 @@ export default function CheckboxInput({
55 mr3: !inline,
55 mr3: !inline,
56 mr1: inline,
56 mr1: inline,
57 'bg-gray1': disabled,
57 'bg-gray1': disabled,
58− 'bg-black white b-black': !disabled && (input.value || white),
58+ 'bg-black white b-black': !disabled && (input.checked || white),
59− 'bg-white black b-black': !disabled && !input.value,
59+ 'bg-white black b-black': !disabled && !input.checked,
60 })}
60 })}
61 style={{
61 style={{
62 height: '14px',
62 height: '14px',
63 width: '14px',
63 width: '14px',
64 ...style,
64 ...style,
65 }}>
65 }}>
66− {input.value && '✓'}
66+ {input.checked && '✓'}
67 </Flex>
67 </Flex>
68 {label}
68 {label}
69 </Flex.Item>
69 </Flex.Item>