T
TanStack4y ago
adverse-sapphire

React-table visibility columns on select on a custom component does not update the parent component

As the title says, I am passing the table to a custom dropdown component:
<ColumnsSelect allLeafColumns={...table.getAllLeafColumns()} />
<ColumnsSelect allLeafColumns={...table.getAllLeafColumns()} />
But, the onchange does not update the parent
onSelect={item => {
item.getToggleVisibilityHandler()
}}
onSelect={item => {
item.getToggleVisibilityHandler()
}}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?