I've been trying to create a table which has a checkbox in each row and also one in the header.
This is the desired behavior:
a. Header checkbox toggles the checkboxes in the rows - this works
b. Individual chechboxes can be checked/unchecked - this doesn't works
I have a Redux store where I have a boolean field for the header checkbox and an array of objects each having a boolean field for the checkbox in the row.
In my example code, if I click a checkbox at a row, the correct action get fired, the state gets updated but the table is not updated. The strange thing is that the checkbox in the header can toggle the checkboxes in the rows without problem.
Am I missing something when I set the value for the checkboxes for rows or this is a bug?
Hi,
I've been trying to create a table which has a checkbox in each row and also one in the header.
This is the desired behavior: a. Header checkbox toggles the checkboxes in the rows - this works b. Individual chechboxes can be checked/unchecked - this doesn't works
I have a Redux store where I have a boolean field for the header checkbox and an array of objects each having a boolean field for the checkbox in the row.
In my example code, if I click a checkbox at a row, the correct action get fired, the state gets updated but the table is not updated. The strange thing is that the checkbox in the header can toggle the checkboxes in the rows without problem.
Am I missing something when I set the value for the checkboxes for rows or this is a bug?
Here is a complete example in typescript: