tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

domtoimage issue with MUI Datagrid #439

Open Sornav opened 1 year ago

Sornav commented 1 year ago

Use case: I am trying to download a snapshot (.png) file of my screen which has a MUI data grid in it. The number of columns is high so a horizontal scroll appears in the data grid, when I scroll to the extreme right(horizontally) in the data grid and download the snapshot the grid data disappears in the snapshot.

Replication: https://codesandbox.io/s/blissful-smoke-yxti2z?file=/demo.js (use the in app refresh if it shows syntax error)

Expected behavior

The data should show as is in the downloaded snapshot.

Actual behavior (stack traces, console logs etc)

The data grid shows up empty in the snapshot

image

Library version

"@mui/material": "latest",
"@mui/x-data-grid": "^5.0.0",
"dom-to-image": "2.6.0",

Browsers