mantine-react-table
mantine-react-table copied to clipboard
Show/Hide Column Option is empty
mantine-react-table version
v1.3.3
react & react-dom versions
18
Describe the bug and the steps to reproduce it
All columns show up in the table, only the show column, hide column popover doesnt show up the options. I need to click reset order so that all the options and will show up. I use spread operator in merging columns, some filters are async, it needs to wait for it. Turns those columns that is not hardcoded wont show up in the popover options
Minimal, Reproducible Example - (Optional, but Recommended)
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
- [X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
I resolve it by doing this
useEffect(() => {
table.setColumnOrder(getDefaultColumnOrderIds(table.options as any));
}, [columns]);
Hi there, could you please post a minimal reproduction? It's not quite clear to me what is it that you are trying to accomplish here.
If you have dynamic defined columns, you also must provide columnOrder state
This will happen if you have a column definition with a Header (uppercase) defined without a header ( lowercase ) defined. At least in my experience.