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] gridFooterElement is null with hideFooter #13273

Closed
slashinfty opened this issue May 27, 2024 · 2 comments
Closed

[data grid] gridFooterElement is null with hideFooter #13273

slashinfty opened this issue May 27, 2024 · 2 comments
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists feature: Export

Comments

@slashinfty
Copy link

slashinfty commented May 27, 2024

Steps to reproduce

Link to live example: Sandbox

Current behavior

Doing either <DataGrid hideFooter ... /> or <GridToolbarExport printOptions={{ hideFooter: true }} /> and then attempting to export to print yields the following error:

TypeError: gridFooterElement is null

Call Stack
useGridPrintExport/handlePrintWindowLoad<
    node_modules/@mui/x-data-grid/hooks/features/export/useGridPrintExport.js (127:1)
useGridPrintExport/exportDataAsPrint</printWindow.onload
    node_modules/@mui/x-data-grid/hooks/features/export/useGridPrintExport.js (256:1)

Removing hideFooter allows it to be printed, but (obviously) with a footer.

Expected behavior

The print dialog should open with the footer hidden.

Context

I have not been able to recreate this by editing existing sandboxes. Unsure what in my packages or setup could cause this, though.

Your environment

No response

Search keywords: gridfooterelement hidefooter x-data-grid

@slashinfty slashinfty added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 27, 2024
@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label May 28, 2024
@michelengelen
Copy link
Member

This is a duplicate of #13015 and has an open PR #13034
I did ping the reviewers, so it should be resolved with the new version! 👍🏼

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.

@slashinfty: 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 added feature: Export duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 28, 2024
@michelengelen michelengelen changed the title gridFooterElement is null with hideFooter [data grid] gridFooterElement is null with hideFooter May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists feature: Export
Projects
None yet
Development

No branches or pull requests

3 participants