-
Notifications
You must be signed in to change notification settings - Fork 47.6k
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
Fix “no onChange handler” warning to fire on falsy values ("", 0, false) too #12628
Merged
gaearon
merged 21 commits into
facebook:master
from
wherestheguac:falsy-proptypes-no-warning-bug
Jul 17, 2018
+128
−36
Merged
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
49851ff
throw warning for falsey `value` prop
32547ff
add nop onChange handler to tests for `value` prop
9e0be3d
prettier
15302d6
check for falsey checked
d8fbf04
fix tests for `checked` prop
d4a0e3c
new tests for `value` prop
f2fcf3c
test formatting
41f4311
forgot 0 (:
b17fab1
test for falsey `checked` prop
b91c2b0
add null check
wherestheguac 484b0cb
Merge branch 'master' into falsy-proptypes-no-warning-bug
wherestheguac e68c16a
Update ReactDOMInput-test.js
gaearon 3804ecd
revert unneeded change
wherestheguac 70235ae
prettier
wherestheguac 08bab46
Merge branch 'master' into falsy-proptypes-no-warning-bug
wherestheguac c802ca5
Merge branch 'master' into falsy-proptypes-no-warning-bug
gaearon 6a03a7a
Update DOMPropertyOperations-test.js
gaearon 731e3e0
Update ReactDOMInput-test.js
gaearon 8bf0648
Update ReactDOMSelect-test.js
gaearon 1e2d2a3
Fixes and tests
gaearon 9cfbed6
Remove unnecessary changes
gaearon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong.
"false"
is not falsy.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the behavior is right but the test title is confusing.