-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Checkbox - Prob click on a controlled way #175
Labels
bug
Something isn't working
Comments
4 tasks
NathanVss
added a commit
that referenced
this issue
Sep 29, 2023
When clicking on the checkmark it was trigerring two onChange on parent elements, thus causing double toggling ( which means revert to the initial value ) in some controlled way approaches ( see the added test ). Fixes #175
NathanVss
added a commit
that referenced
this issue
Sep 29, 2023
When clicking on the checkmark it was trigerring two onChange on parent elements, thus causing double toggling ( which means revert to the initial value ) in some controlled way approaches ( see the added test ). Fixes #175
NathanVss
added a commit
that referenced
this issue
Oct 2, 2023
When clicking on the checkmark it was trigerring two onChange on parent elements, thus causing double toggling ( which means revert to the initial value ) in some controlled way approaches ( see the added test ). Fixes #175
NathanVss
added a commit
that referenced
this issue
Oct 2, 2023
When clicking on the checkmark it was trigerring two onChange on parent elements, thus causing double toggling ( which means revert to the initial value ) in some controlled way approaches ( see the added test ). Fixes #175
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Problematic Behavior
On
@openfun/cunningham-react@1.3.0
.In a controlled way, the checkbox doesn't change state (or change it 2 times on a row) when we click on it, the bug occurs when the card containing the checkbox is clickable.
A codesandbox was made to show the problem:
https://codesandbox.io/p/sandbox/react-ts-cunningham-prob-checkbox-controlled-7523d9
The text was updated successfully, but these errors were encountered: