telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
209 stars 36 forks source link

Fix GridPDFExport when cell has a Link from react-router #1241

Open simonssspirit opened 2 years ago

simonssspirit commented 2 years ago

Fix GridPDFExport when a cell has a Link from react-router

Try to export to see the error: https://stackblitz.com/edit/react-eoqkci-2kyclw?file=app%2Fmain.tsx

The assumption is that when we clone the DOM to export it, the Link element is no longer a direct child of the router.

simonssspirit commented 2 years ago

This can also cause an issue when using a navigate button in the GridToolbar.

We can add a property to specify where the close the Grid. If we clone it inside the app element where the react-router is, the issue can be resolved.

kdikov82 commented 2 years ago

Reported again: Ticket ID: 1571028