-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Checkbox): prevent
onClick
from being called twice (#3351)
* fix(Checkbox): Let click handler call onClick to avoid duplicate calls (#3348) * fix(Checkbox): Fix test to call onClick from a click event (#3348) * fix(Checkbox): Move onClick call completely to handleChange (#3348). * fix(Checkbox): Create tests for DOM Comparisons (#3348). * revert change * Update Checkbox-test.js * Update Checkbox-test.js * Update isConformant.js * fix(Checkbox): Fix typo in handleClick comment (#3348). * fix(Checkbox): Add tests for controlled component with setState as function (#3348). * fix(Checkbox): ensure onClick is called * fix(Checkbox): Fire DOM event on controlled component tests to emulate the real behavior (#3348). * fix(Checkbox): Completely remove click handler (#3348). * small cleanup
- Loading branch information
1 parent
cda2a2f
commit 9ca7bc3
Showing
3 changed files
with
84 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters