-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Describe the bug
When you add a DxcCheckbox component for each item to rows array, checkboxes not being checked separately, instead of, checkboxes are being checked based on index in the pagination. I can checked each checkbox separately if I use checked prop but every time I update the state of the checkboxes, the table is re-rendered and it returns to the first page.
To Reproduce
-
Create a simple component using the example in the documentation https://developer.dxc.com/halstack/10/components/resultset-table/
-
Add a DxcCheckbox for each element like this:
const rows = [ [ { displayValue: <DxcCheckbox /> }, { displayValue: "001"}, { displayValue: "Cris"}, { displayValue: "Paris"} ] ]
-
Add more than 5 elements in the rows array, in order to display pagination
-
Check the first DxcCheckbox in the first page and navigate to the others pages, you will see all DxcCheckbox in the first position will be checked
Expected behaviour
We want to check each element into the array separately to handle the checkboxes are been checked
