Accessing table state (selected row ids) in HOC, to edit column cells for all selected rows #2043
Unanswered
JacobAagaard
asked this question in
General
Replies: 1 comment
-
So apparently the data object is being updated, but the corresponding input cells are not. Which means when I change a select value in one of the selected rows, this value is now also updated in the remaining selected rows, but the select values of those rows are not updated. I'm thinking some side effect action is necessary - any ideas? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a table which uses row selection and contains editable cells (input fields and selects).
When I select multiple rows and edit an input field in one of these rows, I would like the data to propagate to all cells in all selected rows.
I tried passing a setStateAction, to the Table component and then calling that in a useEffect whenever the selected rows are updated. I can render the ids, but they aren't accessible in a function within the same scope which I use to update cells (I used mostly the functionality found in the function updateMyData from the editable data example).
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions