Skip to content
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(DataTable): ignore disabled rows on table select all #5840

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Apr 9, 2020

Closes #5832

Ref #4430

This PR ignores disabled rows when interacting with the <TableSelectAll> checkbox

Testing / Reviewing

Confirm that table row selection logic is correct when a data table contains disabled rows (checked, unchecked, and indeterminate states) as well as when no rows are disabled. Also ensure that filtering rows works as intended (ref #2496)

@emyarod emyarod requested a review from asudoh April 9, 2020 21:00
@emyarod emyarod requested a review from a team as a code owner April 9, 2020 21:00
@ghost ghost requested a review from joshblack April 9, 2020 21:00
@emyarod emyarod force-pushed the 5832-ignore-disabled-rows-during-select-all branch from 0b98a18 to 0b5c8d2 Compare April 9, 2020 21:05
@netlify
Copy link

netlify bot commented Apr 9, 2020

Deploy preview for carbon-elements ready!

Built with commit 0b98a18

https://deploy-preview-5840--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Apr 9, 2020

Deploy preview for carbon-components-react ready!

Built with commit 0b98a18

https://deploy-preview-5840--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Apr 9, 2020

Deploy preview for carbon-components-react ready!

Built with commit 3f1441f

https://deploy-preview-5840--carbon-components-react.netlify.com

@netlify
Copy link

netlify bot commented Apr 9, 2020

Deploy preview for carbon-elements ready!

Built with commit 3f1441f

https://deploy-preview-5840--carbon-elements.netlify.com

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Select all is not grabbing the disabled row / adding to the selected count 👍 ✅

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - Thanks @emyarod!

@asudoh
Copy link
Contributor

asudoh commented Apr 10, 2020

@emyarod thinks this is ready to merge - Thanks @emyarod!

@asudoh asudoh merged commit 5926a5a into carbon-design-system:master Apr 10, 2020
@emyarod emyarod mentioned this pull request Apr 10, 2020
2 tasks
@emyarod emyarod deleted the 5832-ignore-disabled-rows-during-select-all branch April 10, 2020 20:19
This was referenced Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React DataTable - On unchecking header row, unchecking disabled rows checkboxes as well
3 participants