So in my case i needed to take an array of selected items and put them into my component state:
onSelectionChange={(selection, current) =>
{
_this.setState({selectedRows: selection});
}}
I can see in _tableRef.current_ that _tableData_ marked as checked, but i don't see any checkboxes checked anymore. if i don't do anything with state within this handler, everything works as expected.
Any hints on how to fix it?
Hi @skitsanos ,
I solved the problem. It is related with new componentDidUpdate implementation. This problem will be with next release (probably tomorrow or weekend).
Tesekkur ederim Mehmet! can't wait :)
This is done with 1.54.1
I just upgraded to 1.54.1 and it still seems to be a problem for me :/
It also changes it so that the selection is just the most current selection instead of including the other options that have also been checked.
I'm having the same issue. Even with the latest update, as soon as I call setState, the table re-renders without displaying the selected table rows
Any update for this bug? I am still experiencing this on 1.54.1
i am still experiencing this issue
Does anyone know when this bug appeared? Is there a previous version where this isn't an issue?
It also happens when you try to set state from within options.selectionProps.
Same Issue Here, any sort of setState, and the table looses it's state
@aniesshsethh I created my own checkboxes in a custom column and save the checked state in component state. It's not ideal but works.
I do not need for the checkboxes, but to maintain the number of rows shown. so if the user has selected 20, I want 20 selected
I'm also still experiencing this issue.
I am also experiencing this issue. When I call setState from my actions onclick event the table is re-rendered and I lose my selected rows
Still seeing this as well.
This is still happening here
Most helpful comment
This is still happening here