material-react-table icon indicating copy to clipboard operation
material-react-table copied to clipboard

fix: column right pin ruins menu order

Open renatoka opened this issue 1 year ago • 5 comments

column right pin pushes menu item to the bottom instead of keeping correct order

closes #1018

renatoka avatar Feb 29 '24 09:02 renatoka

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 29, 2024 9:17am
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 29, 2024 9:17am

vercel[bot] avatar Feb 29 '24 09:02 vercel[bot]

This way it is was by design. And if we were to get rid of it, we would just simplify the code to table.getAllLeafColumns, instead of splicing out the pinned indexes, only to recombine them like in this PR.

KevinVandy avatar Feb 29 '24 16:02 KevinVandy

@KevinVandy What do you recommend, which approach to go with? I am fairly new to contributing, especially in projects of this size, and also with limited knowledge to lets say performance of something (junior, 1 year work experience). This way I would love to learn from your thoughts and recommendations if I am able to contribute of any sort.

renatoka avatar Feb 29 '24 16:02 renatoka

This menu probably can be improved, especially for pinning. Just need to think about it a bit more.

KevinVandy avatar Feb 29 '24 16:02 KevinVandy

Keep us posted.

renatoka avatar Feb 29 '24 16:02 renatoka