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

[Table] Select/Deselect all options checkbox in Table is not working properly #3706

Open
1 of 2 tasks
RishabhSharma6 opened this issue Jan 31, 2023 · 0 comments
Open
1 of 2 tasks

Comments

@RishabhSharma6
Copy link

What package is this for?

  • React
  • Angular

Describe the bug

In the top left side of the table, we get a checkbox to select/deselect all options. It acts weird if one or more items in the table in selected AND disabled.

The one highlighted in blue
Screenshot 2023-01-31 at 10 27 51 AM

To Reproduce

Steps to reproduce the behavior:

  1. Create a carbon table
  2. Make sure to have at least one row as selected AND disabled, as shown in the picture

Screenshot 2023-01-31 at 10 29 10 AM

  1. Try clicking on the top-left most checkbox of the table to Select/Deselect all the table items
  2. On the initial click, all the items will be selected (work fine), but from the next click the checkbox doesn’t work as required

Expected behavior

It should select/deselect all the items on alternate clicks for all the cases
OR
If 'selecting all' is not supposed to be allowed when we have a disabled table item, then the button should be disabled

Additional context

Screen.Recording.2023-01-31.at.10.35.35.AM.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants