-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
breaking(Checkbox): callback with new checked value in onClick #2014
Conversation
change onClick's checked value to be the new representation of the checked state instead of the representation before the event was triggered BREAKING CHANGE: Checkbox.onClick has changed how the checked property is defined. To migrate update code that references checked property to the opposite value currently assumed. Closes Semantic-Org#1936
Codecov Report
@@ Coverage Diff @@
## master #2014 +/- ##
=========================================
+ Coverage 99.76% 99.8% +0.04%
=========================================
Files 148 148
Lines 2556 2589 +33
=========================================
+ Hits 2550 2584 +34
+ Misses 6 5 -1
Continue to review full report at Codecov.
|
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.
@areinmeyer Thanks for PR 👍
Thanks again! |
Released in |
breaking(Checkbox): callback with new checked value in onClick
Breaking Change
Currently, it represented the previous checked state the
checked
value in a Checkbox'sonClick
callback represents the old state. It now represents the newchecked
state.Before
You needed to negate the
checked
value to get the correct new value:After
The
checked
value represents the correct new value.change onClick's checked value to be the new representation of the
checked state instead of the representation before the event was
triggered
BREAKING CHANGE: Checkbox.onClick has changed how the checked property
is defined. To migrate update code that references checked property to
the opposite value currently assumed.
Closes #1936