[data grid] Print export fails when footer is set to hidden #13015
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Export
good first issue
Great for first contributions. Enable to learn the contribution process.
regression
A bug, but worse
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/x-data-grid@7.3.2/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
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: