You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spoof14
changed the title
Checkbox in a form with onClick on parent causes infinite state update
[bug]: Checkbox in a form with onClick on parent causes infinite state update
Oct 24, 2024
Bug report
Current Behavior
With the simple example of
The app crashed due to infinite state updates. Stopping propogation does nothing.
Expected behavior
The checkbox goes from unchecked to checked
Reproducible example
CodeSandbox Template
Suggested solution
Stop firing onClick multiple times. Perhaps make the checkbox into an actual
<input type='checkbox'>
Your environment
The text was updated successfully, but these errors were encountered: