Checkbox `onChange` does not trigger, can't get value of the onClick
krzysztofwolski opened this issue · 0 comments
krzysztofwolski commented
Code:
<Checkbox onChange={(x) => console.log("changed", x)}>
<Text variant="body">Active</Text>
</Checkbox>
When clicking on checkbox, message is not displayed in the console (I would assume it will be triggered).
When using onClick:
<Checkbox onClick={(x) => console.log("changed", x.currentTarget.value)}>
<Text variant="body">Active</Text>
</Checkbox>
I'm getting a message in the console:
But it's always the same, no matter the state of checkbox