Describe the bug
When enableVirtualization is set to false, frozen/pinned columns are rendered twice in the DOM structure.
While the second set of frozen columns may not be visibly apparent on the screen in regular view, it causes duplicate key warnings (Warning: Encountered two children with the same key) in the console. Furthermore, when exporting the grid to PDF (where enableVirtualization={false} is typically used to render all items), these duplicated frozen columns appear twice side-by-side in the resulting PDF document.
To Reproduce
- Render a grid containing frozen/pinned columns.
- Set enableVirtualization={false} on the grid component.
- Open the browser DevTools and inspect the DOM structure for the grid header/row elements.
- Check the browser console for React key collision warnings.
- Export to PDF (or trigger print view) with enableVirtualization={false}.
Expected behavior
- Frozen columns should only be rendered once in the DOM.
- No React key duplicate warnings should occur in the console.
- Exported PDFs should only display frozen columns once.
Actual behavior
- Inspecting the DOM reveals that the frozen column elements are duplicated.
- Console logs a React warning about duplicate keys for the frozen column elements.
- Exported PDF output shows the frozen columns printed twice side-by-side.
Environment
- Library Version: 7.0.0-beta.61
- React Version: 19.2.0
- Browser/OS: Chrome / Windows 11
Additional Context
It appears that when virtualization is disabled (enableVirtualization={false}), the internal rendering logic duplicates the frozen column container/cells alongside the main column list, resulting in duplicate DOM nodes and key conflicts.
Describe the bug
When enableVirtualization is set to false, frozen/pinned columns are rendered twice in the DOM structure.
While the second set of frozen columns may not be visibly apparent on the screen in regular view, it causes duplicate key warnings (Warning: Encountered two children with the same key) in the console. Furthermore, when exporting the grid to PDF (where enableVirtualization={false} is typically used to render all items), these duplicated frozen columns appear twice side-by-side in the resulting PDF document.
To Reproduce
Expected behavior
Actual behavior
Environment
Additional Context
It appears that when virtualization is disabled (enableVirtualization={false}), the internal rendering logic duplicates the frozen column container/cells alongside the main column list, resulting in duplicate DOM nodes and key conflicts.