[data grid] Fix print export failure when hideFooter option is set #15403
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Export
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-xezygx?file=Demo.jsx
Steps:
Current behavior
An error is displayed in the console:
"
Error in /turbo_modules/@mui/[email protected]/node/hooks/features/export/useGridPrintExport.js (136:23)
Cannot read properties of null (reading 'style')
"
Expected behavior
Print all the rows that are in the datagrid and hide footer
Context
Someone created this bug ticket and fixed the code few months ago. I checked its merged into main. But I still get the same problem for mui pro v7.22. I guess he fixed the issue in free version but not in pro or premium version?
Quote from #13034
I am trying to hide the footer in the print export. But hideFooter: true breaks the data grid. And when set to false, it works as expected.
This error appeared after updating to the latest version. Before I was using version 6.11.1 and it worked.
Your environment
npx @mui/envinfo
Search keywords: print export
The text was updated successfully, but these errors were encountered: