KevinVandy/material-react-table

Pinned columns collapsing even with layoutMode: 'grid-no-grow'

sukhee-n opened this issue · 0 comments

material-react-table version

v2.12.1

react & react-dom versions

React v18.2, Mui v5.15.12

Describe the bug and the steps to reproduce it

https://www.material-react-table.com/docs/guides/column-pinning#apply-absolute-column-widths
Pinned columns don't keep fixed width when using layoutMode: 'grid-no-grow' as written on the guide.

Minimal, Reproducible Example - (Optional, but Recommended)

https://github.com/KevinVandy/material-react-table/blob/v2/apps/material-react-table-docs/examples/enable-column-pinning/sandbox/src/TS.tsx
The problem occurred on my current project.
I tried running this example and the problem was same.

Strangely, on the guide website, the behavior works as expected.

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

No, because I do not have time to dig into it

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.