mui-datatables
mui-datatables copied to clipboard
`print: false` column option is not working
Expected Behavior
Table column should be hidden when printing if its print option is set to false (see docs)
Current Behavior
Setting print option to false has no effect, the column is visible when printing.
Steps to Reproduce (for bugs)
This bug can be reproduced on codesandbox where all examples are located.
- Go to https://codesandbox.io/s/github/gregnb/mui-datatables mentioned in the README
- Select "Hide Columns Print" example
- See how the table has 4 columns: Modified Title Label, Location, Age, Salary
- Click "Print" button
- See all 4 columns present in the print view, while according to the example source both Location and Age columns should've been hidden.

Your Environment
I am pretty sure this is related to this issue: https://github.com/gregnb/mui-datatables/issues/1886#issuecomment-1104304846, and was introduced during the move to tss-react: the CSS responsible for hiding the columns isn't properly created, causing the bug.
| Tech | Version |
|---|---|
| MUI-datatables | 4.2.0 |
| browser | Chrome |
The problem still persists