Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[data grid] Fix print export failure when hideFooter option is set #15403

Closed
jason-pallet-track opened this issue Nov 13, 2024 · 3 comments
Closed
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Export

Comments

@jason-pallet-track
Copy link

jason-pallet-track commented Nov 13, 2024

Steps to reproduce

Link to live example: https://stackblitz.com/edit/react-xezygx?file=Demo.jsx

Steps:

Press 'Export'
Press 'Print'

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
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: print export

@jason-pallet-track jason-pallet-track added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 13, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Nov 13, 2024
@iida-sh
Copy link

iida-sh commented Nov 14, 2024

I encountered the same problem in free

@michelengelen
Copy link
Member

@jason-pallet-track in your example you are using v7.3.2 which was released May 2nd 2024 and the linked PR where this gets fixed was merged Jun 26 2024, so the earliest you can use this bugfix is starting from v7.8.0

It is working with the right versions. Closing! 👍🏼

@michelengelen michelengelen added feature: Export and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 14, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@jason-pallet-track How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@michelengelen michelengelen changed the title mui pro issue- [DataGrid] Fix print export failure when hideFooter option is set [data grid] Fix print export failure when hideFooter option is set Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module! feature: Export
Projects
None yet
Development

No branches or pull requests

3 participants