Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(datatable): selection function not working as expected (carbon-de…
…sign-system#11449) ### Related Ticket(s) Closes carbon-design-system#11349 ### Description To use Selection on DataTable, the documentation states that just need to add the `is-selectable` property in the cds-table tag and setting the prop will automatically set a numerical `selection-name` attribute to every row. This does not happen. ### Changelog **Changed** - Updated the selection functionality to check if `is-selectable` property set to the DataTable, and if so to add `selection-name` property to the rows. <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information