Open FFahrenheit opened 1 week ago
@FFahrenheit I found this from a related PR:
If a user has multiple radio tables, they would just need to pass in their own
name
prop toTableSelectRow
after thegetSelectionProps
It does fix it, here's an example, though I wonder if we could fix this without reintroducing the bug that that PR fixed.
Hi @tay1orjones that fixed the issue for me! Thank you :)
Package
@carbon/react
Browser
Chrome, Safari, Firefox
Package version
v1.60.0
React version
v18.2.0
Description
The
DataTable
radio selection breaks if there are two or more<DataTable>
withradio
selection property enabled. The selection does not work in any of the two tables, selecting random rows between the tables in DOMReproduction/example
https://stackblitz.com/edit/github-rjvrvh?file=package.json
Steps to reproduce
<DataTable>
withradio
option. Happens even with different data and IDsSuggested Severity
None
Application/PAL
No response
Code of Conduct