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

[Bug]: Dynamically adding and removing rows from a web component table with expansion does not work #17894

Closed
2 tasks done
lee-chase opened this issue Oct 28, 2024 · 0 comments · Fixed by #17895
Closed
2 tasks done

Comments

@lee-chase
Copy link
Member

Package

@carbon/web-components

Browser

Chrome

Package version

2.16.0

React version

N/A

Description

The cds-table fails to correctly add expandable to rows when they dynamically change.

Apart from failing to update the rows, other problems may exist due to local values like this._tableRows being out of date.

Reproduction/example

https://stackblitz.com/edit/github-skkfec-rxxnnp?file=src%2Fmain.jsx,index.html

Steps to reproduce

Add rows dynamically (not removing makes cds-table internals stale too) to a table with exapansion.

Note the expandable drop down is missing from every row.

Suggested Severity

Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant