🐛(react) fix checkbox double onChange

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
This commit is contained in:
Nathan Vasse
2023-09-29 17:24:32 +02:00
committed by NathanVss
parent e15586da9b
commit a1e8f46368
3 changed files with 45 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@openfun/cunningham-react": patch
---
fix checkbox double onChange