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

[data table inside selectable data table]: data table inside selectable data table is selectable #12015

Closed
2 tasks done
DoofisS opened this issue Sep 10, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working dev Needs some dev work

Comments

@DoofisS
Copy link

DoofisS commented Sep 10, 2024

Description

when you have expandable and selectable data table and you want to have a data table in expanded row inner dt will automatically be selectable idk if this is the default behavior if yes then how can we disable it cause what if I don't need inner dt to be selectable and I also don't really see adding hide-checkbox prop for every line as a good solution cause it still produce bugs then even when hidden

here some examples and a video of how it works

if you are pressing row checkbox it will not select checkboxes on dt that is inside the expandable row
image
but if you will press select all it will select even the checkboxes inside the expandable row
image
if we try to hide checkbox on a dt that is inside the expandable row cause we don't need it and then we press select all it still will check the checkboxes of the inner dt even the checkboxes are hidden
image
image

Recording.2024-09-10.201630.mp4

Component(s) impacted

data table, expandable, selectable

Browser

No response

Carbon for IBM.com version

@carbon/web-components 2.12.0

Severity

Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.

Application/website

Any project with dt

Package

@carbon/web-components

CodeSandbox example

https://codesandbox.io/p/sandbox/5mnty4?file=%2Findex.html

Steps to reproduce the issue (if applicable)

https://codesandbox.io/p/sandbox/5mnty4?file=%2Findex.html

Release date (if applicable)

No response

Code of Conduct

@DoofisS DoofisS added bug Something isn't working dev Needs some dev work labels Sep 10, 2024
@gyalogmixi
Copy link
Contributor

I do have a similar case, but there is a workaround. Here is a CodeSandbox example

@andy-blum andy-blum closed this as not planned Won't fix, can't repro, duplicate, stale Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev Needs some dev work
Projects
Status: Done
Development

No branches or pull requests

3 participants