-
Notifications
You must be signed in to change notification settings - Fork 2k
fix(checkbox/datatable): fixed checkbox checked
state regression
#20070
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
base: main
Are you sure you want to change the base?
fix(checkbox/datatable): fixed checkbox checked
state regression
#20070
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #20070 +/- ##
=======================================
Coverage 91.39% 91.39%
=======================================
Files 485 485
Lines 31370 31373 +3
Branches 5480 5430 -50
=======================================
+ Hits 28670 28673 +3
- Misses 2546 2547 +1
+ Partials 154 153 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Closes #19563
Closes #19820
Closes #20058
There was a regression problem with the
checkbox
component'schecked
state not updating properly in many use cases, including the selection feature indata-table
. This PR fixes this issue.Changelog
Added
.checked="${checked}"
to the rendering ofcheckbox.ts
since the?
would only conditionally render thechecked
attribute which was the cause of this issue.Testing / Reviewing
DataTable/Selection/Default
in the WC deploy previewDataTable/Batch Actions/Default
in the WC deploy previewPR Checklist
As the author of this PR, before marking ready for review, confirm you:
[ ] Updated documentation and storybook examples[ ] Wrote passing tests that cover this changeMore details can be found in the pull request guide