forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix “no onChange handler” warning to fire on falsy values ("", 0, fal…
…se) too (facebook#12628) * throw warning for falsey `value` prop * add nop onChange handler to tests for `value` prop * prettier * check for falsey checked * fix tests for `checked` prop * new tests for `value` prop * test formatting * forgot 0 (: * test for falsey `checked` prop * add null check * Update ReactDOMInput-test.js * revert unneeded change * prettier * Update DOMPropertyOperations-test.js * Update ReactDOMInput-test.js * Update ReactDOMSelect-test.js * Fixes and tests * Remove unnecessary changes
- Loading branch information
1 parent
606c30a
commit 171e0b7
Showing
5 changed files
with
128 additions
and
36 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
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