Skip to content

Commit

Permalink
chore: fix checkbox click handler
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Nov 7, 2020
1 parent 009daaa commit 0119728
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -14,6 +14,7 @@
- chore: card documentation ([4a4bf13](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/4a4bf13))
- chore: document accordion ([2c0cd55](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/2c0cd55))
- chore: document account settings popup ([955683b](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/955683b))
- chore: documentation theming ([009daaa](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/009daaa))
- chore: expand subgraph ([31e87b2](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/31e87b2))
- chore: expand subgraph ([788c53f](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/788c53f))
- chore: expand subgraph more ([4aca747](https://github.com/Proof-Of-Humanity/proof-of-humanity-web/commit/4aca747))
Expand Down
5 changes: 4 additions & 1 deletion components/checkbox.js
Expand Up @@ -42,7 +42,10 @@ export default function Checkbox({ value, onChange, disabled, name, ...rest }) {
return (
<Box
variant="forms.checkbox"
onClick={() => onChange({ target: { name, value: !checked } })}
onClick={(event) => {
event.preventDefault();
onChange({ target: { name, value: !checked } });
}}
{...rest}
>
<Input
Expand Down

0 comments on commit 0119728

Please sign in to comment.